Android EditText自带显示密码

2016-09-19 0 条评论 555 次阅读 0 人点赞

<android.support.design.widget.TextInputLayoutandroid:layout_width="match_parent"android:layout_height="wrap_content"><editTextandroid:id="@+id/password"android:layout_width="match_parent"android:layout_height="wrap_content"android:hint="@string/login_hint_password"android:imeActionId="@+id/login"android:tag="password"android:imeOptions="actionUnspecified"android:inputType="textPassword"android:maxLines="1"android:singleLine="true" /></android.support.design.widget.TextInputLayout>外面加上android.support.design.widget.TextInputLayout然后inputtype为passwd就ok.

TestSmirk

这个人太懒什么东西都没留下

文章评论(0)