]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/activity_webview.xml
Update urlTextBox on click.
[PrivacyBrowserAndroid.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
32         android:layout_width="match_parent"
33         android:layout_height="match_parent"
34         android:layout_below="@+id/topBarLayout"
35         tools:context=".MainActivity"
36         android:id="@+id/relativeLayout">
37
38         <WebView
39             android:id="@+id/mainWebView"
40             android:layout_width="match_parent"
41             android:layout_height="match_parent"
42             android:focusable="true"
43             android:focusableInTouchMode="true" />
44
45         <ProgressBar
46             android:id="@+id/progressBar"
47             style="?android:attr/progressBarStyleHorizontal"
48             android:layout_width="fill_parent"
49             android:layout_height="7dp"
50             android:max="100"
51             android:progressTint="#FF29A8FF"
52             android:progressBackgroundTint="#FFFFFFFF"
53             android:visibility="gone" />
54     </FrameLayout>
55
56 </RelativeLayout>