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" >
9 android:layout_width="match_parent"
10 android:layout_height="wrap_content"
11 android:orientation="horizontal"
12 android:id="@+id/topBarLayout">
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"/>
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" />
31 // FrameLayout lets the ProgressBar float on top of the WebView.
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">
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" />
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"
53 android:progressTint="#FF29A8FF"
54 android:progressBackgroundTint="#FFFFFFFF"
55 android:visibility="gone" />