]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/res/layout/activity_webview.xml
Add the favorite icon to the addressBarLinearLayout.
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / activity_webview.xml
index 6e22c007f885b92b82011377852cd014f876f6de..d235b83a8100327f0e878402729dc2396a620ae9 100644 (file)
             android:layout_width="match_parent"
             android:layout_height="wrap_content">
 
-            <!-- android:inputType="textUri" sets the keyboard to have a go arrow. -->
-            <EditText
-                android:id="@+id/urlTextBox"
+            <LinearLayout
+                android:id="@+id/addressBarLinearLayout"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
-                android:inputType="textUri"
-                android:imeOptions="actionGo" />
+                android:orientation="horizontal">
+
+                <ImageView
+                    android:id="@+id/favoriteIcon"
+                    android:src="@drawable/ic_home_black_24dp"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:layout_gravity="center" />
+
+                <!-- android:inputType="textUri" sets the keyboard to have a go arrow. -->
+                <!-- android:layout_weight="1" makes urlTextBox take up all the remaining space. -->
+                <EditText
+                    android:id="@+id/urlTextBox"
+                    android:layout_width="0dp"
+                    android:layout_weight="1"
+                    android:layout_height="wrap_content"
+                    android:inputType="textUri"
+                    android:imeOptions="actionGo" />
+            </LinearLayout>
 
             <!-- android:max changes the maximum ProgressBar value from 10000 to 100 to match progress percentage. -->
             <ProgressBar
@@ -40,7 +56,6 @@
                 android:visibility="gone" />
         </FrameLayout>
 
-
         <WebView
             android:id="@+id/mainWebView"
             android:layout_width="match_parent"