]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/res/layout/domain_settings_fragment.xml
Scroll to the beginning of the URL text box when it loses focus. https://redmine...
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / domain_settings_fragment.xml
index bcf4d03af48566b153067f3ecf45cef3add86d4c..d71868b2c9076e3d3f8c7e03d5a3d971e8c346ef 100644 (file)
                 <Spinner
                     android:id="@+id/domain_settings_user_agent_spinner"
                     android:layout_height="wrap_content"
-                    android:layout_width="match_parent"
-                    android:labelFor="@+id/domain_settings_custom_user_agent_edittext" />
+                    android:layout_width="match_parent" />
             </LinearLayout>
 
             <TextView
                 android:layout_marginEnd="36dp"
                 android:textSize="13sp" />
 
+            <!-- `android:autofillHints` only applies to API >= 26.  `tools:ignore="UnusedAttribute"` removes the lint warning. -->
             <EditText
-                android:id="@id/domain_settings_custom_user_agent_edittext"
+                android:id="@+id/domain_settings_custom_user_agent_edittext"
                 android:layout_height="wrap_content"
                 android:layout_width="match_parent"
                 android:layout_marginStart="40dp"
                 android:layout_marginEnd="60dp"
                 android:inputType="textUri"
-                android:hint="@string/custom_user_agent"/>
+                android:hint="@string/custom_user_agent"
+                android:autofillHints=""
+                tools:ignore="UnusedAttribute" />
         </LinearLayout>
 
         <!-- Font Size. -->
 
                     <TextView
                         android:id="@+id/saved_ssl_certificate_issued_by_cname"
-
                         android:layout_height="wrap_content"
                         android:layout_width="match_parent" />