]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/app_bar.xml
Remove the static member variables, converting two of them to private member variables.
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / app_bar.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!-- FrameLayout lets the ProgressBar float on top of urlTextBox. -->
4 <FrameLayout
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" >
9
10     <LinearLayout
11         android:id="@+id/addressBarLinearLayout"
12         android:layout_width="match_parent"
13         android:layout_height="wrap_content"
14         android:orientation="horizontal" >
15
16         <!-- Set the program icon as the initial favoriteIcon. -->
17         <ImageView
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"/>
24
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. -->
27         <EditText
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" />
34     </LinearLayout>
35
36     <!-- android:max changes the maximum ProgressBar value from 10000 to 100 to match progress percentage. -->
37     <ProgressBar
38         android:id="@+id/progressBar"
39         style="?android:attr/progressBarStyleHorizontal"
40         android:layout_width="fill_parent"
41         android:layout_height="7dp"
42         android:layout_gravity="bottom"
43         android:max="100"
44         android:progressTint="#FF0097FF"
45         android:progressBackgroundTint="#FFFFFFFF"
46         android:visibility="gone" />
47 </FrameLayout>