我想改变 TEXT INPUT LAYOUT 中的提示颜色,当它处于聚焦或未聚焦状态时相同。我有两个 TEXT INPUT LAYOUT 字段。两个字段都是相同的颜色。但它在聚焦状态颜色出现,但在未聚焦状态下为默认值灰色出现。我想在聚焦和未聚焦状态下保持提示的颜色相同。
<com.example.viveka.snipeid.CustomTextInputLayout
android:id="@+id/input_layout_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
app:errorEnabled="true"
>
<EditText
android:id="@+id/editEmail"
android:layout_width="match_parent"
android:layout_height="40dp"
android:hint="email / snipe id"
android:digits="abcdefghijklmnopqrstuvwxyz.@0123456789"
android:textAllCaps="false"
android:textSize="12sp"
android:layout_marginLeft="-4dp"
android:textColor="@color/lightgray"
android:textColorHint="@color/primary"/>
</com.example.viveka.snipeid.CustomTextInputLayout>
Run Code Online (Sandbox Code Playgroud)
我需要将两个字段更改为相同的颜色..
android android-layout android-edittext android-textinputlayout