Android: Display TextView in the right-side of EditText which is in the TextInputLayout
Try Like this - Surround with Relative or Linear Layout to get the output like that
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Password"/>
</android.support.design.widget.TextInputLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="Forgot Password ?"/>
</RelativeLayout>
Note : Set some padding right for edit text for alignment
If you type full edittext , the textview overlay for your character .