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">
23 android:id="@+id/addressBarLinearLayout"
24 android:layout_width="match_parent"
25 android:layout_height="wrap_content"
26 android:orientation="horizontal">
29 android:id="@+id/favoriteIcon"
30 android:src="@drawable/ic_language_black_24dp"
31 android:layout_width="wrap_content"
32 android:layout_height="wrap_content"
33 android:layout_gravity="center" />
35 <!-- android:inputType="textUri" sets the keyboard to have a go arrow. -->
36 <!-- android:layout_weight="1" makes urlTextBox take up all the remaining space. -->
38 android:id="@+id/urlTextBox"
39 android:layout_width="0dp"
40 android:layout_weight="1"
41 android:layout_height="wrap_content"
42 android:inputType="textUri"
43 android:imeOptions="actionGo" />
46 <!-- android:max changes the maximum ProgressBar value from 10000 to 100 to match progress percentage. -->
48 android:id="@+id/progressBar"
49 style="?android:attr/progressBarStyleHorizontal"
50 android:layout_width="fill_parent"
51 android:layout_height="7dp"
52 android:layout_gravity="bottom"
54 android:progressTint="#FF0097FF"
55 android:progressBackgroundTint="#FFFFFFFF"
56 android:visibility="gone" />
60 android:id="@+id/mainWebView"
61 android:layout_width="match_parent"
62 android:layout_height="match_parent"
63 android:layout_below="@id/addressBarFrameLayout"
64 android:focusable="true"
65 android:focusableInTouchMode="true" />
69 </android.support.v4.widget.SwipeRefreshLayout>