• 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    android:fitsSystemWindows="true"
7    tools:context="com.android.captiveportallogin.CaptivePortalLoginActivity"
8    tools:ignore="MergeRootFrame" >
9
10    <LinearLayout
11    android:layout_width="match_parent"
12    android:layout_height="match_parent"
13    android:orientation="vertical" >
14
15      <FrameLayout
16          android:layout_width="match_parent"
17          android:layout_height="4dp" >
18
19        <!-- Eliminates ProgressBar padding by boxing it into a 4dp high container -->
20        <ProgressBar
21            android:id="@+id/progress_bar"
22            style="@android:style/Widget.Material.Light.ProgressBar.Horizontal"
23            android:indeterminate="false"
24            android:max="100"
25            android:progress="0"
26            android:layout_gravity="center"
27            android:layout_width="match_parent"
28            android:layout_height="wrap_content" />
29      </FrameLayout>
30
31      <FrameLayout
32          android:layout_width="match_parent"
33          android:layout_height="match_parent" >
34
35        <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
36            android:id="@+id/swipe_refresh"
37            android:layout_width="match_parent"
38            android:layout_height="match_parent">
39
40          <WebView
41              android:id="@+id/webview"
42              android:layout_width="match_parent"
43              android:layout_height="match_parent"
44              android:layout_alignParentBottom="false"
45              android:layout_alignParentRight="false" />
46        </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
47
48        <!-- The layout is focusable and clickable to prevent interaction through it. -->
49        <FrameLayout
50            android:id="@+id/downloading_panel"
51            android:layout_width="match_parent"
52            android:layout_height="match_parent"
53            android:alpha="0.5"
54            android:background="#000000"
55            android:visibility="gone"
56            android:clickable="true"
57            android:focusable="true"
58            android:gravity="center">
59
60          <ProgressBar
61              android:id="@+id/download_in_progress"
62              android:background="?android:attr/colorBackground"
63              android:layout_centerInParent="true"
64              android:layout_gravity="center"
65              android:padding="20dp"
66              android:layout_width="wrap_content"
67              android:layout_height="wrap_content" />
68        </FrameLayout>
69
70      </FrameLayout>
71    </LinearLayout>
72</FrameLayout>
73