ฉันได้สร้างแบบฟอร์มในแอพ Android แล้ว มันมีลักษณะเช่นนี้ สิ่งที่ฉันต้องการคือลักษณะที่ปรากฏของข้อความในคำแนะนำทั้งหมดที่สอดคล้องกัน ถ้าฉันใช้ inputType = "textpassword" มันจะให้ผลของการยืนยันรหัสผ่านซึ่งแตกต่างจากมุมมองอื่น (ตัวหนา) รหัสผ่านของฟิลด์มีประเภทอินพุตเดียวกัน แต่ข้อความแก้ไขไม่อยู่ใน textInputlayout รหัสสำหรับฟิลด์มีดังนี้
1>ช่องรหัสผ่าน
<EditText
android:id="@+id/registerPasswordEt"
fontPath="fonts/Proxima_Nova_Light.ttf"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Password *"
android:fontFamily="sans-serif"
android:textStyle="normal"
android:inputType="textPassword"
android:maxLines="1"
android:nextFocusDown="@+id/registerConfirmPasswordEt" />
2> ยืนยันรหัสผ่าน
<android.support.design.widget.TextInputLayout
android:id="@+id/input_layout_confirm_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/input_layout_password">
<EditText
android:id="@+id/registerConfirmPasswordEt"
fontPath="fonts/Proxima_Nova_Light.ttf"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fontFamily="sans-serif"
android:hint="Confirm Password ( must match password ) *"
android:inputType="textPassword"
android:maxLines="1"
android:nextFocusDown="@+id/registerUserNameEt"
android:textStyle="normal" />
</android.support.design.widget.TextInputLayout>
3> ฟิลด์อื่น ๆ
<android.support.design.widget.TextInputLayout
android:id="@+id/input_layout_last_name"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/registerLastNameEt"
fontPath="fonts/Proxima_Nova_Light.ttf"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Last Name *"
android:inputType="textPersonName"
android:maxLines="1"
android:nextFocusDown="@+id/registerPasswordEt" />
</android.support.design.widget.TextInputLayout>
สิ่งที่ฉันต้องการคือข้อความทั้งหมดให้ดูคล้ายกัน และฉันต้องการ TextInputLayout สำหรับเอฟเฟกต์ภาพเคลื่อนไหว มีวิธีทำให้ข้อความปรากฏเหมือนเดิมหรือไม่?