]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/activity_webview.xml
Remove the "Go" button.
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / activity_webview.xml
1 <android.support.v4.widget.SwipeRefreshLayout
2     android:id="@+id/swipeRefreshLayoutContainer"
3     xmlns:android="http://schemas.android.com/apk/res/android"
4     android:layout_width="match_parent"
5     android:layout_height="match_parent">
6     <!-- SwipeRefreshLayout allows the user to swipe down to refresh. -->
7
8     <RelativeLayout
9         android:id="@+id/relativeLayoutContainer"
10         xmlns:android="http://schemas.android.com/apk/res/android"
11         xmlns:tools="http://schemas.android.com/tools"
12         android:layout_width="match_parent"
13         android:layout_height="match_parent"
14         tools:context=".Webview" >
15
16         <!-- FrameLayout lets the ProgressBar float on top of urlTextBox. -->
17         <FrameLayout
18             android:id="@+id/addressBarFrameLayout"
19             android:layout_width="match_parent"
20             android:layout_height="wrap_content">
21
22             <!-- android:inputType="textUri" sets the keyboard to have a go arrow. -->
23             <EditText
24                 android:id="@+id/urlTextBox"
25                 android:layout_width="match_parent"
26                 android:layout_height="wrap_content"
27                 android:inputType="textUri"
28                 android:imeOptions="actionGo" />
29
30             <!-- android:max changes the maximum ProgressBar value from 10000 to 100 to match progress percentage. -->
31             <ProgressBar
32                 android:id="@+id/progressBar"
33                 style="?android:attr/progressBarStyleHorizontal"
34                 android:layout_width="fill_parent"
35                 android:layout_height="7dp"
36                 android:layout_gravity="bottom"
37                 android:max="100"
38                 android:progressTint="#FF0097FF"
39                 android:progressBackgroundTint="#FFFFFFFF"
40                 android:visibility="gone" />
41         </FrameLayout>
42
43
44         <WebView
45             android:id="@+id/mainWebView"
46             android:layout_width="match_parent"
47             android:layout_height="match_parent"
48             android:layout_below="@id/addressBarFrameLayout"
49             android:focusable="true"
50             android:focusableInTouchMode="true" />
51
52     </RelativeLayout>
53
54 </android.support.v4.widget.SwipeRefreshLayout>