我想将眼睛图标的位置更改为左侧。如何更改布局中显示密码图标的位置
我开发一个应用阿拉伯语,所以里面的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时,添加了眼睛图标 –