Loading app/src/main/res/layout/alertdialog_edittext.xml +4 −1 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Generic xml for use with AlertDialog where we want an EditText. Used in several places, so customisations should be done programatically in code - this is also why we don't set a "hint" here in the XML. also why we don't set a "hint" here in the XML; this should be done by the caller. Similarly for the autofillHints. Important not to create EditTexts dynamically in code, due to Google Play emoji policy... --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_horizontal" Loading @@ -15,6 +17,7 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:inputType="textMultiLine" tools:ignore="Autofill,LabelFor" /> </LinearLayout> app/src/main/res/layout/myedittextpreference.xml +10 −3 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- See documentation in MyEditTextPreference.java for why we have this. Since this is used in multiple places, we don't set the hint (which seems to be standard behaviour for EditTextPreference anyway.) Similarly for the autofillHints. The inputType is set programmatically by MyEditTextPreference.java. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content"> Loading @@ -15,5 +21,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginHorizontal="24dp" tools:ignore="Autofill,LabelFor,TextFields" /> </LinearLayout> Loading
app/src/main/res/layout/alertdialog_edittext.xml +4 −1 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Generic xml for use with AlertDialog where we want an EditText. Used in several places, so customisations should be done programatically in code - this is also why we don't set a "hint" here in the XML. also why we don't set a "hint" here in the XML; this should be done by the caller. Similarly for the autofillHints. Important not to create EditTexts dynamically in code, due to Google Play emoji policy... --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_horizontal" Loading @@ -15,6 +17,7 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:inputType="textMultiLine" tools:ignore="Autofill,LabelFor" /> </LinearLayout>
app/src/main/res/layout/myedittextpreference.xml +10 −3 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- See documentation in MyEditTextPreference.java for why we have this. Since this is used in multiple places, we don't set the hint (which seems to be standard behaviour for EditTextPreference anyway.) Similarly for the autofillHints. The inputType is set programmatically by MyEditTextPreference.java. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content"> Loading @@ -15,5 +21,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginHorizontal="24dp" tools:ignore="Autofill,LabelFor,TextFields" /> </LinearLayout>