I am creating login page with Mandatory fields like first name and mobile number,for that i also designed floating labels using XMl but floating labels are not applied for mandatory fields but applied to normal field where i put hint.Below is the code i used for floating labels.Can anyone help me to solve this
<android.support.design.widget.TextInputLayout
android:id="@+id/input_layout_password"
android:layout_width="match_parent"
android:layout_below="@+id/input_layout_email"
android:layout_height="wrap_content">
<EditText
android:id="@+id/mobilenumber"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:textSize="15dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</android.support.design.widget.TextInputLayout>