• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2             xmlns:tools="http://schemas.android.com/tools"
3             android:id="@+id/container"
4             android:layout_width="match_parent"
5             android:layout_height="match_parent"
6             tools:context="com.android.hotspot2.osu.OsuLoginActivity">
7    <LinearLayout
8        android:layout_width="match_parent"
9        android:layout_height="match_parent"
10        android:orientation="vertical">
11        <FrameLayout
12            android:layout_width="match_parent"
13            android:layout_height="4dp">
14
15            <!-- Eliminates ProgressBar padding by boxing it into a 4dp high container -->
16            <ProgressBar
17                android:id="@+id/progress_bar"
18                style="@android:style/Widget.Material.Light.ProgressBar.Horizontal"
19                android:indeterminate="false"
20                android:max="100"
21                android:progress="0"
22                android:layout_gravity="center"
23                android:layout_width="match_parent"
24                android:layout_height="wrap_content"/>
25        </FrameLayout>
26        <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
27            android:id="@+id/swipe_refresh"
28            android:layout_width="match_parent"
29            android:layout_height="match_parent">
30        <WebView
31            android:id="@+id/webview"
32            android:layout_width="match_parent"
33            android:layout_height="match_parent"
34            android:layout_alignParentBottom="false"
35            android:layout_alignParentRight="false"/>
36        </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
37    </LinearLayout>
38</FrameLayout>
39