{"id":762,"date":"2022-08-16T12:50:32","date_gmt":"2023-05-24T12:21:48","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%aetextinputlayout%e3%81%ae%e4%be%8b\/"},"modified":"2025-08-01T02:14:54","modified_gmt":"2025-07-31T17:14:54","slug":"%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%aetextinputlayout%e3%81%ae%e4%be%8b","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%aetextinputlayout%e3%81%ae%e4%be%8b\/","title":{"rendered":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eTextInputLayout\u306e\u4f8b"},"content":{"rendered":"<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Android TextInputLayout\u304c\u63d0\u4f9b\u3059\u308b\u6a5f\u80fd\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u898b\u3066\u3044\u304d\u307e\u3059\u3002Android TextInputLayout\u306f\u3001\u30de\u30c6\u30ea\u30a2\u30eb\u30c7\u30b6\u30a4\u30f3\u30b5\u30dd\u30fc\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u4ed8\u5c5e\u3057\u3066\u3044\u308b\u30c7\u30b6\u30a4\u30f3\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u3059\u3002<\/p>\n<h2>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eTextInputLayout<\/h2>\n<p>Android\u306eTexInputLayout\u306fLinearLayout\u3092\u62e1\u5f35\u3057\u3066\u3044\u307e\u3059\u3002TextInputLayout\u306e\u4e3b\u306a\u4f7f\u7528\u76ee\u7684\u306f\u3001EditText\uff08\u307e\u305f\u306f\u305d\u306e\u5b50\u5b6b\uff09\u3092\u30e9\u30c3\u30d7\u3057\u3001\u6d6e\u52d5\u30d2\u30f3\u30c8\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u4e00\u822c\u7684\u306a\u30ac\u30a4\u30c9\u30e9\u30a4\u30f3\u3068\u3057\u3066\u3001TextInputLayout\u306f\u901a\u5e38\u306eEditText\u306e\u4ee3\u308f\u308a\u306bTextInputEditText\u3092\u30e9\u30c3\u30d7\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u306a\u305c\u306a\u3089\u3001TextInputEditText\u306fEditText\u306e\u30b5\u30d6\u30af\u30e9\u30b9\u3067\u3042\u308a\u3001TextInputLayout\u306e\u5b50\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002\u3055\u3089\u306b\u3001EditText\u3092\u4f7f\u7528\u3059\u308b\u3068\u8b66\u544a\u304c\u8868\u793a\u3055\u308c\u307e\u3059\uff1a&#8221;EditText added is not a TextInputEditText. Please switch to using that class instead.&#8221; TextInputLayout\u306f\u3001\u6d6e\u52d5\u30d2\u30f3\u30c8\u30e9\u30d9\u30eb\u3092\u8868\u793a\u3059\u308b\u4ee5\u5916\u306b\u3082\u591a\u304f\u306e\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>Android\u306eTextInputLayout\u306e\u6a5f\u80fd<\/h3>\n<p>\u4eca\u56de\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u30ab\u30d0\u30fc\u3059\u308b\u4e3b\u306a\u7279\u5fb4\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u6d6e\u52d5\u30d2\u30f3\u30c8\u306e\u6709\u52b9\u5316\/\u7121\u52b9\u5316<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u6d6e\u52d5\u30d2\u30f3\u30c8\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u6709\u52b9\u5316\/\u7121\u52b9\u5316<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u8868\u793a<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u6587\u5b57\u30ab\u30a6\u30f3\u30bf\u30fc\u306e\u8868\u793a<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u6587\u5b57\u6570\u5236\u9650\u3092\u8d85\u3048\u305f\u5834\u5408\u306b\u30e6\u30fc\u30b6\u30fc\u306b\u8b66\u544a\u3059\u308b<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u6d6e\u52d5\u30d2\u30f3\u30c8\u3001\u30a8\u30e9\u30fc\u30e9\u30d9\u30eb\u3001\u6587\u5b57\u30ab\u30a6\u30f3\u30bf\u30fc\u306e\u30c6\u30ad\u30b9\u30c8\u306e\u5916\u89b3\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u53ef\u8996\u6027\u306e\u5207\u308a\u66ff\u3048<\/ol>\n<p>\u3053\u308c\u3089\u306e\u6a5f\u80fd\u3092\u4e00\u3064\u305a\u3064\u78ba\u8a8d\u3057\u3001Android Studio\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eTextInputLayout\u306e\u4f8b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u69cb\u9020\u3002<\/h3>\n<p>\u3053\u308c\u306f\u5358\u4e00\u306e\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002\u79c1\u305f\u3061\u306f\u30ec\u30a4\u30a2\u30a6\u30c8\u3001\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3001styles.xml\u304a\u3088\u3073colors.xml\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u3067\u3059\u3079\u3066\u306e\u4f5c\u696d\u3092\u884c\u3044\u307e\u3059\u3002\u307e\u305a\u3001\u4ee5\u4e0b\u306b\u793a\u3059\u3088\u3046\u306b\u3001build.gradle\u30d5\u30a1\u30a4\u30eb\u306b\u30c7\u30b6\u30a4\u30f3\u30b5\u30dd\u30fc\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>compile 'com.android.support:design:25.3.1'\r\n<\/code><\/pre>\n<h3>\u6d6e\u904a\u30d2\u30f3\u30c8\u306e\u6709\u52b9\u5316\/\u7121\u52b9\u5316<\/h3>\n<p>\u30d2\u30f3\u30c8\u306e\u6d6e\u904a\uff08Floating Hints\uff09\u306f\u3001TextInputLayout\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u7121\u52b9\u306b\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u5c5e\u6027\u3092\u30bf\u30b0\u5185\u306b\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059 : app:hintEnabled=&#8221;false&#8221;\u3002\u4ee5\u4e0b\u306f\u3001activity_main.xml \u30ec\u30a4\u30a2\u30a6\u30c8\u304b\u3089\u629c\u7c8b\u3057\u305fxml\u30b3\u30fc\u30c9\u3067\u30013\u3064\u306eEditText\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;ScrollView xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:app=\"https:\/\/schemas.android.com\/apk\/res-auto\"\r\n    xmlns:tools=\"https:\/\/schemas.android.com\/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"wrap_content\"\r\n    tools:context=\"com.scdev.featuresoftextinputlayout.MainActivity\"&gt;\r\n\r\n    &lt;LinearLayout\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:orientation=\"vertical\"&gt;\r\n\r\n\r\n        &lt;android.support.design.widget.TextInputEditText\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_margin=\"@dimen\/activity_horizontal_margin\"\r\n            android:hint=\"TextInputEditText\" \/&gt;\r\n\r\n\r\n        &lt;android.support.design.widget.TextInputLayout\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"match_parent\"\r\n            android:layout_margin=\"@dimen\/activity_horizontal_margin\"&gt;\r\n\r\n            &lt;android.support.design.widget.TextInputEditText\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:hint=\"Floating Hint Enabled Default\" \/&gt;\r\n\r\n        &lt;\/android.support.design.widget.TextInputLayout&gt;\r\n\r\n\r\n        &lt;android.support.design.widget.TextInputLayout\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_margin=\"@dimen\/activity_horizontal_margin\"\r\n            app:hintEnabled=\"false\"&gt;\r\n\r\n            &lt;android.support.design.widget.TextInputEditText\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:hint=\"Floating Hint Disabled\" \/&gt;\r\n\r\n        &lt;\/android.support.design.widget.TextInputLayout&gt;\r\n\r\n&lt;\/LinearLayout&gt;\r\n&lt;\/ScrollView&gt;\r\n<\/code><\/pre>\n<p>\u7b2c3\u306eEditText\u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u30d5\u30ed\u30fc\u30c6\u30a3\u30f3\u30b0\u30d2\u30f3\u30c8\u304c\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306e\u51fa\u529b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u6d6e\u904a\u30d2\u30f3\u30c8\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u6709\u52b9\u5316 \/ \u7121\u52b9\u5316<\/h3>\n<p>\u524d\u306e\u6a5f\u80fd\u3068\u540c\u69d8\u306b\u3001\u6d6e\u904a\u30d2\u30f3\u30c8\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u7121\u52b9\u306b\u3059\u308b\u306b\u306f\u3001TextInputLayout\u30bf\u30b0\u5185\u306b\u6b21\u306e\u5c5e\u6027\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002app:hintAnimationEnabled=&#8221;false&#8221; \u4ee5\u4e0b\u306exml\u30b3\u30fc\u30c9\u306factivity_main.xml\u30ec\u30a4\u30a2\u30a6\u30c8\u304b\u3089\u53d6\u5f97\u3057\u305f\u3082\u306e\u3067\u3042\u308a\u3001\u30b1\u30fc\u30b9\u306e\u3044\u305a\u308c\u304b\u306b\u5bfe\u3057\u3066EditText\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;ScrollView xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:app=\"https:\/\/schemas.android.com\/apk\/res-auto\"\r\n    xmlns:tools=\"https:\/\/schemas.android.com\/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"wrap_content\"\r\n    tools:context=\"com.scdev.featuresoftextinputlayout.MainActivity\"&gt;\r\n\r\n    &lt;LinearLayout\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:orientation=\"vertical\"&gt;\r\n\r\n        &lt;android.support.design.widget.TextInputLayout\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"match_parent\"\r\n            android:layout_margin=\"@dimen\/activity_horizontal_margin\"&gt;\r\n\r\n            &lt;android.support.design.widget.TextInputEditText\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:hint=\"Floating Hint Enabled Default\" \/&gt;\r\n\r\n        &lt;\/android.support.design.widget.TextInputLayout&gt;\r\n\r\n\r\n        &lt;android.support.design.widget.TextInputLayout\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_margin=\"@dimen\/activity_horizontal_margin\"\r\n            app:hintAnimationEnabled=\"false\"&gt;\r\n\r\n            &lt;android.support.design.widget.TextInputEditText\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:hint=\"Hint Animation Disabled\" \/&gt;\r\n\r\n        &lt;\/android.support.design.widget.TextInputLayout&gt;\r\n\r\n&lt;\/LinearLayout&gt;\r\n&lt;\/ScrollView&gt;\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306e\u51fa\u529b\u306f\u4ee5\u4e0b\u306b\u793a\u3059\u901a\u308a\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u6ce8\u76ee\u3059\u3079\u304d\u306f\u30012\u756a\u76ee\u306eEditText\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u30d5\u30a9\u30fc\u30ab\u30b9\u3055\u308c\u305f\u3068\u304d\u306b\u6d6e\u304d\u4e0a\u304c\u308b\u30d2\u30f3\u30c8\u304c\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3055\u308c\u306a\u3044\u3068\u3044\u3046\u70b9\u3067\u3059\u3002<\/p>\n<h3>\u30d2\u30f3\u30c8\u306eTextAppearance\u3092\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u3059\u308b<\/h3>\n<p>\u30d2\u30f3\u30c8\u306e\u30c6\u30ad\u30b9\u30c8\u30ab\u30e9\u30fc\u3084\u30c6\u30ad\u30b9\u30c8\u30b5\u30a4\u30ba\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u5c5e\u6027\u3092\u4f7f\u7528\u3057\u307e\u3059: app:hintTextAppearance=&#8221;@style\/HintText&#8221;\u3002HintText\u30b9\u30bf\u30a4\u30eb\u306fstyles.xml\u5185\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;style name=\"HintText\" parent=\"TextAppearance.Design.Hint\"&gt;\r\n        &lt;item name=\"android:textSize\"&gt;16sp&lt;\/item&gt;\r\n        &lt;item name=\"android:textColor\"&gt;@color\/colorPrimary&lt;\/item&gt;\r\n    &lt;\/style&gt;\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306eXML\u30b3\u30fc\u30c9\u306f\u3001activity_main.xml\u30ec\u30a4\u30a2\u30a6\u30c8\u304b\u3089\u53d6\u5f97\u3057\u305f\u3082\u306e\u3067\u3001\u30d2\u30f3\u30c8\u30c6\u30ad\u30b9\u30c8\u306e\u8868\u793a\u8a2d\u5b9a\u304c\u3042\u308b\u5834\u5408\u3068\u306a\u3044\u5834\u5408\u306e\u3044\u305a\u308c\u304b\u306b\u5bfe\u5fdc\u3057\u305fEditText\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u542b\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;ScrollView xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:app=\"https:\/\/schemas.android.com\/apk\/res-auto\"\r\n    xmlns:tools=\"https:\/\/schemas.android.com\/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"wrap_content\"\r\n    tools:context=\"com.scdev.featuresoftextinputlayout.MainActivity\"&gt;\r\n\r\n    &lt;LinearLayout\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:orientation=\"vertical\"&gt;\r\n\r\n        &lt;android.support.design.widget.TextInputLayout\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"match_parent\"\r\n            android:layout_margin=\"@dimen\/activity_horizontal_margin\"&gt;\r\n\r\n            &lt;android.support.design.widget.TextInputEditText\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:hint=\"Floating Hint Enabled\" \/&gt;\r\n\r\n        &lt;\/android.support.design.widget.TextInputLayout&gt;\r\n\r\n\r\n        &lt;android.support.design.widget.TextInputLayout\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"match_parent\"\r\n            android:layout_margin=\"@dimen\/activity_horizontal_margin\"\r\n            app:hintTextAppearance=\"@style\/HintText\"&gt;\r\n\r\n            &lt;android.support.design.widget.TextInputEditText\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:hint=\"Custom Hint TextAppearance\" \/&gt;\r\n\r\n        &lt;\/android.support.design.widget.TextInputLayout&gt;\r\n\r\n&lt;\/LinearLayout&gt;\r\n&lt;\/ScrollView&gt;\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306e\u51fa\u529b\u306f\u3001\u4ee5\u4e0b\u306b\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u6587\u5b57\u6570\u30ab\u30a6\u30f3\u30bf\u30fc (Moji kazu kaunt\u0101)<\/h3>\n<p>\u6587\u5b57\u30ab\u30a6\u30f3\u30bf\u30fc\u306f\u3001\u6570\u591a\u304f\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u4f7f\u7528\u3055\u308c\u308b\u6a5f\u80fd\u3067\u3059\uff08Twitter\u306e\u6587\u5b57\u5236\u9650\u3092\u899a\u3048\u3066\u3044\u307e\u3059\u304b\uff1f\uff09\u3002TextInputLayout\u5185\u3067\u4f7f\u7528\u3059\u308b\u6587\u5b57\u6570\u306e\u6700\u5927\u6570\u3092\u6307\u5b9a\u3059\u308b\u306b\u306f\u3001app:counterEnabled\u3092true\u306b\u8a2d\u5b9a\u3057\u3001app:counterMaxLength\u306b\u6700\u5927\u6587\u5b57\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u6587\u5b57\u30ab\u30a6\u30f3\u30bf\u30fc\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067EditText\uff08\u53f3\u4e0b\uff09\u306e\u4e0b\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u57f7\u7b46\u3059\u308b\u6642\u70b9\u3067\u306f\u3001\u4f4d\u7f6e\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u30ab\u30a6\u30f3\u30bf\u30fc\u306e\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u306f\u3001\u30d2\u30f3\u30c8\u30c6\u30ad\u30b9\u30c8\u306e\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u3068\u4f3c\u3066\u3044\u307e\u3059\u3002app:counterTextAppearance\u304c\u3053\u306e\u5c5e\u6027\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306estyles.xml\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u6b21\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;style name=\"CounterText\" parent=\"TextAppearance.Design.Counter\"&gt;\r\n        &lt;item name=\"android:textSize\"&gt;16sp&lt;\/item&gt;\r\n        &lt;item name=\"android:textColor\"&gt;@color\/my_pink&lt;\/item&gt;\r\n    &lt;\/style&gt;\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306exml\u30b3\u30fc\u30c9\u306factivity_main.xml\u30ec\u30a4\u30a2\u30a6\u30c8\u304b\u3089\u53d6\u5f97\u3055\u308c\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u6587\u5b57\u6570\u30ab\u30a6\u30f3\u30bf\u30fc\u3068\u30ab\u30b9\u30bf\u30e0\u306e\u30ab\u30a6\u30f3\u30bf\u30fc\u3092\u6301\u3064EditText\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;ScrollView xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:app=\"https:\/\/schemas.android.com\/apk\/res-auto\"\r\n    xmlns:tools=\"https:\/\/schemas.android.com\/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"wrap_content\"\r\n    tools:context=\"com.scdev.featuresoftextinputlayout.MainActivity\"&gt;\r\n\r\n    &lt;LinearLayout\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:orientation=\"vertical\"&gt;\r\n\r\n        &lt;android.support.design.widget.TextInputLayout\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_margin=\"@dimen\/activity_horizontal_margin\"\r\n            app:counterEnabled=\"true\"\r\n            app:counterMaxLength=\"5\"\r\n            app:hintTextAppearance=\"@style\/HintText\"&gt;\r\n\r\n            &lt;android.support.design.widget.TextInputEditText\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:hint=\"Character Counter Limit 10\" \/&gt;\r\n\r\n        &lt;\/android.support.design.widget.TextInputLayout&gt;\r\n\r\n\r\n        &lt;android.support.design.widget.TextInputLayout\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_margin=\"@dimen\/activity_horizontal_margin\"\r\n            app:counterEnabled=\"true\"\r\n            app:counterMaxLength=\"5\"\r\n            app:counterTextAppearance=\"@style\/CounterText\"\r\n            app:hintTextAppearance=\"@style\/HintText\"&gt;\r\n\r\n            &lt;android.support.design.widget.TextInputEditText\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:hint=\"Character Counter Custom TextAppearance\" \/&gt;\r\n\r\n        &lt;\/android.support.design.widget.TextInputLayout&gt;\r\n\r\n&lt;\/LinearLayout&gt;\r\n&lt;\/ScrollView&gt;\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306e\u51fa\u529b\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002\u4e0a\u8a18\u306e\u51fa\u529b\u3092\u3088\u304f\u89b3\u5bdf\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<ul class=\"post-ul\">\n<li>The first EditText field changes its counter textColor, hint textColor and the indicator color when the character count is exceeded.<\/li>\n<li>The second EditText field does the same but also, it changes the counter custom textColor and custom textSize when the limit exceeds.<\/li>\n<\/ul>\n<p>\u6587\u5b57\u30ab\u30a6\u30f3\u30bf\u30fc\u304c\u5236\u9650\u3092\u8d85\u3048\u305f\u5834\u5408\u306b\u5fc5\u8981\u306a\u30b9\u30bf\u30a4\u30eb\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306b\u3001\u6b21\u306b\u898b\u308bcounterFlow\u5c5e\u6027\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u6587\u5b57\u6570\u30ab\u30a6\u30f3\u30bf\u30fc\u306e\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc<\/h3>\n<p>\u4e0a\u8a18\u3067\u898b\u305f\u3088\u3046\u306b\u3001\u6587\u5b57\u6570\u304c\u5b9a\u7fa9\u3055\u308c\u305f\u5236\u9650\u3092\u8d85\u3048\u308b\u5834\u5408\u3001\u30ab\u30a6\u30f3\u30bf\u30fc\u30c6\u30ad\u30b9\u30c8\u306fcounterFlow\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u5c5e\u6027\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u5c5e\u6027\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u4e0a\u8a18\u306e\u51fa\u529b\u3067\u898b\u305f\u3088\u3046\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u3082\u306e\u306b\u56fa\u57f7\u3057\u307e\u3059\u3002\u6b21\u306eparam app:counterOverflowTextAppearance\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002CounterOverflow\u306e\u30b9\u30bf\u30a4\u30eb\u306fstyles.xml\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code> &lt;style name=\"CounterOverFlow\" parent=\"TextAppearance.Design.Counter.Overflow\"&gt;\r\n        &lt;item name=\"android:textSize\"&gt;16sp&lt;\/item&gt;\r\n        &lt;item name=\"android:textColor\"&gt;@color\/my_orange&lt;\/item&gt;\r\n    &lt;\/style&gt;\r\n<\/code><\/pre>\n<p>\u524d\u306eactivity_main.xml\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;android.support.design.widget.TextInputLayout\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_margin=\"@dimen\/activity_horizontal_margin\"\r\n            app:counterEnabled=\"true\"\r\n            app:counterMaxLength=\"5\"\r\n            app:counterOverflowTextAppearance=\"@style\/CounterOverFlow\"\r\n            app:counterTextAppearance=\"@style\/CounterText\"\r\n            app:hintTextAppearance=\"@style\/HintText\"&gt;\r\n\r\n            &lt;android.support.design.widget.TextInputEditText\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:hint=\"CounterOverflow CustomTextAppearance\" \/&gt;\r\n\r\n        &lt;\/android.support.design.widget.TextInputLayout&gt;\r\n<\/code><\/pre>\n<p>\u3082\u3046\u4e00\u5ea6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8d77\u52d5\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u30a8\u30e9\u30fc\u30e9\u30d9\u30eb<\/h3>\n<p>app:errorEnabled\u3092true\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001EditText\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u4e0b\u306b\u6761\u4ef6\u306b\u57fa\u3065\u3044\u3066\u30a8\u30e9\u30fc\u30c6\u30ad\u30b9\u30c8\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30a8\u30e9\u30fc\u30c6\u30ad\u30b9\u30c8\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001app:errorTextAppearance\u5c5e\u6027\u3092\u4f7f\u7528\u3057\u3001styles.xml\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;style name=\"ErrorText\" parent=\"TextAppearance.Design.Error\"&gt;\r\n        &lt;item name=\"android:textSize\"&gt;16sp&lt;\/item&gt;\r\n        &lt;item name=\"android:textColor\"&gt;@color\/my_black&lt;\/item&gt;\r\n    &lt;\/style&gt;\r\n<\/code><\/pre>\n<p>\u4e0b\u8a18\u306e XML \u30b3\u30fc\u30c9\u306f\u3001activity_main.xml \u30ec\u30a4\u30a2\u30a6\u30c8\u304b\u3089\u53d6\u5f97\u3057\u305f\u3082\u306e\u3067\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30a8\u30e9\u30fc\u30e9\u30d9\u30eb\u3068\u30ab\u30b9\u30bf\u30e0\u306e\u30a8\u30e9\u30fc\u30e9\u30d9\u30eb\u7528\u306e EditText \u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;ScrollView xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:app=\"https:\/\/schemas.android.com\/apk\/res-auto\"\r\n    xmlns:tools=\"https:\/\/schemas.android.com\/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"wrap_content\"\r\n    tools:context=\"com.scdev.featuresoftextinputlayout.MainActivity\"&gt;\r\n\r\n    &lt;LinearLayout\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:orientation=\"vertical\"&gt;\r\n\r\n        &lt;android.support.design.widget.TextInputLayout\r\n            android:id=\"@+id\/errorInputLayout\"\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_margin=\"@dimen\/activity_horizontal_margin\"\r\n            app:counterEnabled=\"true\"\r\n            app:counterMaxLength=\"5\"\r\n            app:counterOverflowTextAppearance=\"@style\/CounterOverFlow\"\r\n            app:counterTextAppearance=\"@style\/CounterText\"\r\n            app:errorEnabled=\"true\"\r\n            app:hintTextAppearance=\"@style\/HintText\"&gt;\r\n\r\n            &lt;android.support.design.widget.TextInputEditText\r\n                android:id=\"@+id\/errorEditText\"\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:hint=\"Default Error Label\" \/&gt;\r\n\r\n        &lt;\/android.support.design.widget.TextInputLayout&gt;\r\n\r\n\r\n        &lt;android.support.design.widget.TextInputLayout\r\n            android:id=\"@+id\/customErrorInputLayout\"\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_margin=\"@dimen\/activity_horizontal_margin\"\r\n            app:counterEnabled=\"true\"\r\n            app:counterMaxLength=\"5\"\r\n            app:counterOverflowTextAppearance=\"@style\/CounterOverFlow\"\r\n            app:counterTextAppearance=\"@style\/CounterText\"\r\n            app:errorEnabled=\"true\"\r\n            app:errorTextAppearance=\"@style\/ErrorText\"\r\n            app:hintTextAppearance=\"@style\/HintText\"&gt;\r\n\r\n            &lt;android.support.design.widget.TextInputEditText\r\n                android:id=\"@+id\/customErrorEditText\"\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:hint=\"Custom Error Label\" \/&gt;\r\n\r\n        &lt;\/android.support.design.widget.TextInputLayout&gt;\r\n\r\n&lt;\/LinearLayout&gt;\r\n&lt;\/ScrollView&gt;\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306b\u793a\u3059\u3088\u3046\u306b\u3001MainActivity.java\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u5bfe\u3057\u3066\u3001setError\uff08String\uff09\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u3067\u3001\u30a8\u30e9\u30fc\u30c6\u30ad\u30b9\u30c8\u3092\u8868\u793a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.featuresoftextinputlayout;\r\n\r\nimport android.support.design.widget.TextInputEditText;\r\nimport android.support.design.widget.TextInputLayout;\r\nimport android.support.v7.app.AppCompatActivity;\r\nimport android.os.Bundle;\r\nimport android.text.Editable;\r\nimport android.text.TextWatcher;\r\n\r\npublic class MainActivity extends AppCompatActivity {\r\n\r\n\r\n    TextInputLayout errorInputLayout, customErrorInputLayout;\r\n    TextInputEditText errorEditText, customErrorEditText;\r\n\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.activity_main);\r\n\r\n        errorEditText = (TextInputEditText) findViewById(R.id.errorEditText);\r\n        errorInputLayout = (TextInputLayout) findViewById(R.id.errorInputLayout);\r\n\r\n        customErrorEditText = (TextInputEditText) findViewById(R.id.customErrorEditText);\r\n        customErrorInputLayout = (TextInputLayout) findViewById(R.id.customErrorInputLayout);\r\n\r\n        errorEditText.addTextChangedListener(new TextWatcher() {\r\n            @Override\r\n            public void beforeTextChanged(CharSequence s, int start, int count, int after) {\r\n\r\n            }\r\n\r\n            @Override\r\n            public void onTextChanged(CharSequence s, int start, int before, int count) {\r\n\r\n            }\r\n\r\n            @Override\r\n            public void afterTextChanged(Editable s) {\r\n\r\n                if (s.length() &gt; errorInputLayout.getCounterMaxLength())\r\n                    errorInputLayout.setError(\"Max character length is \" + errorInputLayout.getCounterMaxLength());\r\n                else\r\n                    errorInputLayout.setError(null);\r\n\r\n            }\r\n        });\r\n\r\n        customErrorEditText.addTextChangedListener(new TextWatcher() {\r\n            @Override\r\n            public void beforeTextChanged(CharSequence s, int start, int count, int after) {\r\n\r\n            }\r\n\r\n            @Override\r\n            public void onTextChanged(CharSequence s, int start, int before, int count) {\r\n\r\n            }\r\n\r\n            @Override\r\n            public void afterTextChanged(Editable s) {\r\n\r\n                if (s.length() &gt; customErrorInputLayout.getCounterMaxLength())\r\n                    customErrorInputLayout.setError(\"Max character length is \" + customErrorInputLayout.getCounterMaxLength());\r\n                else\r\n                    customErrorInputLayout.setError(null);\r\n\r\n            }\r\n        });\r\n\r\n\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001TextInputEditText\u306e\u5404\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b TextChangedListener(TextWatcher\u3092\u5b9f\u88c5)\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u73fe\u5728\u306e\u6587\u5b57\u6570\u304c\u30ab\u30a6\u30f3\u30bf\u30fc\u306e\u6700\u5927\u5236\u9650\u3092\u8d85\u3048\u308b\u5834\u5408\u306b\u306f\u3001\u30a8\u30e9\u30fc\u30e9\u30d9\u30eb\u3092\u8868\u793a\u3057\u307e\u3059\u3002\u30a8\u30e9\u30fc\u30e9\u30d9\u30eb\u3092\u30af\u30ea\u30a2\u3059\u308b\u305f\u3081\u306b\u3001setError()\u5185\u306e\u5024\u3092null\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306e\u51fa\u529b\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\uff1a\u6ce8\uff1a\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u306f\u3001\u30a8\u30e9\u30fc\u30e9\u30d9\u30eb\u3068\u540c\u3058\u8272\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u306fcounterOverflow\u306b\u3088\u3063\u3066\u8a2d\u5b9a\u3055\u308c\u305f\u8272\u3092\u4e0a\u66f8\u304d\u3059\u308b\u305f\u3081\u3001\u6700\u512a\u5148\u306e\u8272\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30d1\u30b9\u30ef\u30fc\u30c9\u8868\u793a\u5207\u308a\u66ff\u3048<\/h3>\n<p>app:passwordToggleEnabled\u3092true\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u8868\u793a\/\u975e\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30a2\u30a4\u30b3\u30f3\u306e\u8272\u3092\u5909\u66f4\u3059\u308b\u306b\u306fapp:passwordToggleTint\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306exml\u30b3\u30fc\u30c9\u306factivity_main.xml\u30ec\u30a4\u30a2\u30a6\u30c8\u304b\u3089\u306e\u3082\u306e\u3067\u3042\u308a\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u8868\u793a\u5207\u308a\u66ff\u3048\u7528\u306eEditText\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u3042\u308a\u307e\u3059\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30a2\u30a4\u30b3\u30f3\u3068\u8272\u4ed8\u304d\u306e\u30a2\u30a4\u30b3\u30f3\u304c\u3042\u308a\u307e\u3059\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;ScrollView xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:app=\"https:\/\/schemas.android.com\/apk\/res-auto\"\r\n    xmlns:tools=\"https:\/\/schemas.android.com\/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"wrap_content\"\r\n    tools:context=\"com.scdev.featuresoftextinputlayout.MainActivity\"&gt;\r\n\r\n    &lt;LinearLayout\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:orientation=\"vertical\"&gt;\r\n\r\n        &lt;android.support.design.widget.TextInputLayout\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_margin=\"@dimen\/activity_horizontal_margin\"\r\n            app:counterEnabled=\"true\"\r\n            app:counterMaxLength=\"5\"\r\n            app:counterOverflowTextAppearance=\"@style\/CounterOverFlow\"\r\n            app:counterTextAppearance=\"@style\/CounterText\"\r\n            app:hintTextAppearance=\"@style\/HintText\"\r\n            app:passwordToggleEnabled=\"true\"&gt;\r\n\r\n            &lt;android.support.design.widget.TextInputEditText\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:hint=\"Password Visibility Toggle\"\r\n                android:inputType=\"textPassword\" \/&gt;\r\n\r\n        &lt;\/android.support.design.widget.TextInputLayout&gt;\r\n\r\n\r\n        &lt;android.support.design.widget.TextInputLayout\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_margin=\"@dimen\/activity_horizontal_margin\"\r\n            app:counterEnabled=\"true\"\r\n            app:counterMaxLength=\"5\"\r\n            app:counterOverflowTextAppearance=\"@style\/CounterOverFlow\"\r\n            app:counterTextAppearance=\"@style\/CounterText\"\r\n            app:hintTextAppearance=\"@style\/HintText\"\r\n            app:passwordToggleEnabled=\"true\"\r\n            app:passwordToggleTint=\"@color\/my_orange\"&gt;\r\n\r\n            &lt;android.support.design.widget.TextInputEditText\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:hint=\"Password Visibility Toggle Tint\"\r\n                android:inputType=\"textPassword\" \/&gt;\r\n\r\n        &lt;\/android.support.design.widget.TextInputLayout&gt;\r\n&lt;\/LinearLayout&gt;\r\n&lt;\/ScrollView&gt;\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306b\u3088\u3063\u3066\u8868\u793a\u3055\u308c\u308b\u51fa\u529b\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\uff1a\u6ce8\u610f\uff1aapp\uff1apasswordToggleDrawable\u3092\u4f7f\u7528\u3057\u3066\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u53ef\u8996\u6027\u5207\u308a\u66ff\u3048\u3067\u72ec\u81ea\u306e\u30ab\u30b9\u30bf\u30e0\u30a2\u30a4\u30b3\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3067\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f\u7d42\u4e86\u3067\u3059\u3002TextInputLayout\u306b\u5b58\u5728\u3059\u308b\u4e3b\u8981\u306a\u6a5f\u80fd\u3092\u3059\u3079\u3066\u30ab\u30d0\u30fc\u3057\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u304b\u3089Android TextInputLayout\u306e\u4f8b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Android TextInputLayout \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u53c2\u7167\uff1aAndroid\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Android TextInputLayout\u304c\u63d0\u4f9b\u3059\u308b\u6a5f\u80fd\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u898b\u3066\u3044\u304d\u307e\u3059\u3002Android TextInputLayout\u306f\u3001\u30de\u30c6\u30ea\u30a2\u30eb\u30c7\u30b6\u30a4\u30f3\u30b5\u30dd\u30fc\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u4ed8\u5c5e\u3057\u3066\u3044\u308b\u30c7\u30b6\u30a4\u30f3 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-762","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eTextInputLayout\u306e\u4f8b - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eTextInputLayout\u306e\u4f8b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306etextinputlayout\u306e\u4f8b\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eTextInputLayout\u306e\u4f8b\" \/>\n<meta property=\"og:description\" content=\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eTextInputLayout\u306e\u4f8b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306etextinputlayout\u306e\u4f8b\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-24T12:21:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T17:14:54+00:00\" \/>\n<meta name=\"author\" content=\"\u967d, \u5411\u5b87\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u967d, \u5411\u5b87\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"42\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%aetextinputlayout%e3%81%ae%e4%be%8b\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%aetextinputlayout%e3%81%ae%e4%be%8b\/\",\"name\":\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eTextInputLayout\u306e\u4f8b - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-05-24T12:21:48+00:00\",\"dateModified\":\"2025-07-31T17:14:54+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\"},\"description\":\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eTextInputLayout\u306e\u4f8b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%aetextinputlayout%e3%81%ae%e4%be%8b\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%aetextinputlayout%e3%81%ae%e4%be%8b\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%aetextinputlayout%e3%81%ae%e4%be%8b\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eTextInputLayout\u306e\u4f8b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\",\"name\":\"\u967d, \u5411\u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"caption\":\"\u967d, \u5411\u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%aetextinputlayout%e3%81%ae%e4%be%8b\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eTextInputLayout\u306e\u4f8b - Blog - Silicon Cloud","description":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eTextInputLayout\u306e\u4f8b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306etextinputlayout\u306e\u4f8b\/","og_locale":"ja_JP","og_type":"article","og_title":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eTextInputLayout\u306e\u4f8b","og_description":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eTextInputLayout\u306e\u4f8b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306etextinputlayout\u306e\u4f8b\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-05-24T12:21:48+00:00","article_modified_time":"2025-07-31T17:14:54+00:00","author":"\u967d, \u5411\u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u967d, \u5411\u5b87","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"42\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%aetextinputlayout%e3%81%ae%e4%be%8b\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%aetextinputlayout%e3%81%ae%e4%be%8b\/","name":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eTextInputLayout\u306e\u4f8b - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-05-24T12:21:48+00:00","dateModified":"2025-07-31T17:14:54+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c"},"description":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eTextInputLayout\u306e\u4f8b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%aetextinputlayout%e3%81%ae%e4%be%8b\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%aetextinputlayout%e3%81%ae%e4%be%8b\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%aetextinputlayout%e3%81%ae%e4%be%8b\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eTextInputLayout\u306e\u4f8b"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c","name":"\u967d, \u5411\u5b87","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","caption":"\u967d, \u5411\u5b87"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%aetextinputlayout%e3%81%ae%e4%be%8b\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/762","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=762"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/762\/revisions"}],"predecessor-version":[{"id":44701,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/762\/revisions\/44701"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}