android/app/src/main/res/layout/activity_main.xml (1485 bytes)
1 <?xml version="1.0" encoding="utf-8"?> 2 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_width="match_parent" 4 android:layout_height="match_parent" 5 android:background="@color/background" 6 android:fitsSystemWindows="true"> 7 8 <WebView 9 android:id="@+id/web" 10 android:layout_width="match_parent" 11 android:layout_height="match_parent" 12 android:visibility="invisible" /> 13 14 <LinearLayout 15 android:id="@+id/error" 16 android:layout_width="match_parent" 17 android:layout_height="match_parent" 18 android:gravity="center" 19 android:orientation="vertical" 20 android:padding="24dp" 21 android:visibility="gone"> 22 23 <TextView 24 android:id="@+id/error_text" 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:gravity="center" 28 android:textColor="@color/text" 29 android:textSize="16sp" /> 30 31 <Button 32 android:id="@+id/retry" 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:layout_marginTop="20dp" 36 android:text="@string/retry" /> 37 38 <Button 39 android:id="@+id/change_server" 40 android:layout_width="wrap_content" 41 android:layout_height="wrap_content" 42 android:text="@string/server_title" /> 43 </LinearLayout> 44 </FrameLayout>