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:inputType="textUri" sets the keyboard to have a go arrow. -->
26 <!-- android:layout_weight="1" makes urlTextBox take up all the remaining space. -->
28 android:id="@+id/urlTextBox"
29 android:layout_width="0dp"
30 android:layout_weight="1"
31 android:layout_height="wrap_content"
32 android:inputType="textUri"
33 android:imeOptions="actionGo" />
36 <!-- android:max changes the maximum ProgressBar value from 10000 to 100 to match progress percentage. -->
37 <!-- android:layout_height="2dp" works best for API 23 "Marshmallow", but "3dp" is required for visibility on API <= 22. -->
39 android:id="@+id/progressBar"
40 style="?android:attr/progressBarStyleHorizontal"
41 android:layout_width="fill_parent"
42 android:layout_height="3dp"
43 android:layout_gravity="bottom"
45 android:progressTint="#FF0097FF"
46 android:progressBackgroundTint="#FFFFFFFF"
47 android:visibility="gone" />