3244bb203e98fd04a0d2bae12191772add855eca
[PrivacyBrowser.git] / app / src / main / res / layout / activity_webview.xml
1 <RelativeLayout
2     xmlns:android="http://schemas.android.com/apk/res/android"
3     xmlns:tools="http://schemas.android.com/tools"
4     android:layout_width="match_parent"
5     android:layout_height="match_parent"
6     tools:context=".Webview" >
7
8     <LinearLayout
9         android:layout_width="match_parent"
10         android:layout_height="wrap_content"
11         android:orientation="horizontal"
12         android:id="@+id/topBarLayout">
13
14         <EditText
15             android:id="@+id/urlTextBox"
16             android:layout_width="0dp"
17             android:layout_height="wrap_content"
18             android:inputType="textUri"
19             android:imeOptions="actionGo"
20             android:layout_weight="1"/>
21
22         <Button
23             android:id="@+id/goButton"
24             android:text="@string/go_button"
25             android:onClick="loadUrlFromTextBox"
26             style="?android:attr/buttonStyleSmall"
27             android:layout_width="wrap_content"
28             android:layout_height="wrap_content" />
29     </LinearLayout>
30
31     // FrameLayout lets the ProgressBar float on top of the WebView.
32     <FrameLayout
33         android:layout_width="match_parent"
34         android:layout_height="match_parent"
35         android:layout_below="@+id/topBarLayout"
36         tools:context=".MainActivity"
37         android:id="@+id/relativeLayout">
38
39         <WebView
40             android:id="@+id/mainWebView"
41             android:layout_width="match_parent"
42             android:layout_height="match_parent"
43             android:focusable="true"
44             android:focusableInTouchMode="true" />
45
46         // android:max changes the maximum ProgressBar value from 10000 to 100 to match progress percentage.
47         <ProgressBar
48             android:id="@+id/progressBar"
49             style="?android:attr/progressBarStyleHorizontal"
50             android:layout_width="fill_parent"
51             android:layout_height="7dp"
52             android:max="100"
53             android:progressTint="#FF29A8FF"
54             android:progressBackgroundTint="#FFFFFFFF"
55             android:visibility="gone" />
56     </FrameLayout>
57
58 </RelativeLayout>