Made password visibility toggleable

This commit is contained in:
dankito 2020-10-01 23:08:08 +02:00
parent cb486de6d4
commit b019360ad1
3 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -37,6 +39,7 @@
android:id="@+id/edtxtPassword" android:id="@+id/edtxtPassword"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:showPasswordToggle="true"
android:hint="@string/online_banking_credentials_password" android:hint="@string/online_banking_credentials_password"
android:inputType="textPassword" android:inputType="textPassword"
/> />

View File

@ -82,6 +82,7 @@
android:id="@+id/edtxtPassword" android:id="@+id/edtxtPassword"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:showPasswordToggle="true"
android:hint="@string/online_banking_credentials_password" android:hint="@string/online_banking_credentials_password"
android:inputType="textPassword" android:inputType="textPassword"
/> />

View File

@ -16,6 +16,7 @@
<attr name="android:hint" /> <attr name="android:hint" />
<attr name="android:inputType" /> <attr name="android:inputType" />
<attr name="android:selectAllOnFocus" /> <attr name="android:selectAllOnFocus" />
<attr name="showPasswordToggle" format="boolean"/>
</declare-styleable> </declare-styleable>