-<RelativeLayout
+<!-- SwipeRefreshLayout allows the user to swipe down to refresh. -->
+<android.support.v4.widget.SwipeRefreshLayout
+ android:id="@+id/swipeRefreshLayoutContainer"
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:context=".Webview" >
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:id="@+id/topBarLayout">
-
- <EditText
- android:id="@+id/urlTextBox"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:inputType="textUri"
- android:imeOptions="actionGo"
- android:layout_weight="1"/>
-
- <Button
- android:id="@+id/goButton"
- android:text="@string/go_button"
- android:onClick="loadUrl"
- style="?android:attr/buttonStyleSmall"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
- </LinearLayout>
+ android:layout_height="match_parent">
<WebView
android:id="@+id/mainWebView"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_below="@+id/topBarLayout"
android:focusable="true"
- android:focusableInTouchMode="true" />
-</RelativeLayout>
+ android:focusableInTouchMode="true"/>
+
+</android.support.v4.widget.SwipeRefreshLayout>