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. -->
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" >
16 <!-- FrameLayout lets the ProgressBar float on top of urlTextBox. -->
18 android:id="@+id/addressBarFrameLayout"
19 android:layout_width="match_parent"
20 android:layout_height="wrap_content">
22 <!-- android:inputType="textUri" sets the keyboard to have a go arrow. -->
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" />
30 <!-- android:max changes the maximum ProgressBar value from 10000 to 100 to match progress percentage. -->
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"
38 android:progressTint="#FF0097FF"
39 android:progressBackgroundTint="#FFFFFFFF"
40 android:visibility="gone" />
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" />
54 </android.support.v4.widget.SwipeRefreshLayout>