我想將眼睛圖標的位置更改爲左側。如何更改佈局中顯示密碼圖標的位置
我開發一個應用阿拉伯語,所以裏面的EditText將文本靠右對齊。任何想法如何做到這一點?
我的代碼:
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/txt_password"
android:layout_width="match_parent"
android:layout_height="34dp"
android:hint="@string/prompt_password"
android:imeActionLabel="@string/action_sign_in"
android:imeOptions="actionUnspecified"
android:inputType="textPassword"
android:maxLines="1" />
</android.support.design.widget.TextInputLayout>
充分利用的EditText的引力的權利。並使用drawableleft對齊圖標左邊 – Madhav
@Madhav,但我不使用drawable,當我使用inputType作爲textPassword時,添加了眼睛圖標 –