1 <?xml version="1.0" encoding="utf-8"?>
3 <!-- FrameLayout lets the ProgressBar float on top of urlTextBox. -->
5 android:id="@+id/addressBarFrameLayout"
6 xmlns:android="http://schemas.android.com/apk/res/android"
7 android:layout_width="match_parent"
8 android:layout_height="wrap_content">
11 android:id="@+id/addressBarLinearLayout"
12 android:layout_width="match_parent"
13 android:layout_height="wrap_content"
14 android:orientation="horizontal" >
16 <!-- Set the program icon as the initial favoriteIcon. -->
18 android:id="@+id/favoriteIcon"
19 android:src="@drawable/ic_language_black_24dp"
20 android:layout_width="wrap_content"
21 android:layout_height="wrap_content"
22 android:layout_gravity="center"
23 android:contentDescription="@string/favorite_icon"/>
25 <!-- android:imeOptions="actionGo" sets the keyboard to have a "go" key instead of a "new line" key. -->
26 <!-- android:inputType="textUri" disables spell check in the EditText and changes the "go" key from a check mark to an arrow. -->
27 <!-- android:layout_weight="1" makes urlTextBox take up all the remaining space. -->
29 android:id="@+id/urlTextBox"
30 android:layout_width="0dp"
31 android:layout_weight="1"
32 android:layout_height="wrap_content"
33 android:imeOptions="actionGo"
34 android:inputType="textUri" />
37 <!-- android:max changes the maximum ProgressBar value from 10000 to 100 to match progress percentage. -->
38 <!-- android:layout_height="2dp" works best for API 23 "Marshmallow", but "3dp" is required for visibility on API <= 22. -->
40 android:id="@+id/progressBar"
41 style="?android:attr/progressBarStyleHorizontal"
42 android:layout_width="fill_parent"
43 android:layout_height="3dp"
44 android:layout_gravity="bottom"
46 android:progressTint="#FF0097FF"
47 android:progressBackgroundTint="#FFFFFFFF"
48 android:visibility="gone" />