]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/res/layout/url_bar.xml
Remove copy and paste menu items (they are now handled by SupportActionBar) and creat...
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / url_bar.xml
index 8ff3f3ed17bb3e8c79a2162027f6410a0b97a78d..e912cf2b62178e680bdf967e5fcf15541d7bc652 100644 (file)
 
         <!-- android:imeOptions="actionGo" sets the keyboard to have a "go" key instead of a "new line" key. -->
         <!-- android:inputType="textUri" disables spell check in the EditText and changes the "go" key from a check mark to an arrow. -->
-        <!-- android:layout_weight="1" makes urlTextBox take up all the remaining space. -->
+        <!-- For some reason, android:layout_weight="1" doesdn't makes urlTextBox take up all the remaining space when it is inside a SupportActionBar.
+            layout_width="2000" is less elegant, but it does the trick. -->
         <EditText
             android:id="@+id/urlTextBox"
-            android:layout_width="0dp"
-            android:layout_weight="1"
+            android:layout_width="2000dp"
             android:layout_height="wrap_content"
             android:imeOptions="actionGo"
             android:inputType="textUri" />