Android : TextInputLayout の Hint テキストの色、サイズを設定 + EditText の下線の色の設定
TextInputLayout で EditText の上に表示されるテキストは app:hintTextAppearance を設定して変更します。 デフォルトはアプリのテーマとして指定した colorAccent で、12sp(多分)です。
EditText の下線とカーソル表示の色は colorControl*** を設定した theme を android:theme で設定して変更します。
android.support.v7.widget.AppCompatEditText の場合は app:theme です。
(xmlns:app="http://schemas.android.com/apk/res-auto" としている場合)
layout.xml 側
<android.support.design.widget.TextInputLayout android:layout_width="match_parent" android:layout_height="match_parent" app:hintTextAppearance="@style/EditTextHint"> <EditText android:id="@+id/edit_text" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="Hint" android:theme="@style/EditTextColorControl"/> </android.support.design.widget.TextInputLayout>
styles.xml 側
<style name="EditTextHint" parent="@style/TextAppearance.Design.Hint"> <item name="android:textColor">@color/app_primary</item> <item name="android:textSize">20sp</item> </style> <style name="EditTextColorControl"> <item name="colorControlNormal">@color/app_primary</item> <item name="colorControlActivated">@color/app_primary</item> <item name="colorControlHighlight">@color/app_primary</item> </style>