LibreTube/app/src/main/res/layout/activity_nointernet.xml

69 lines
2.5 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2022-09-09 19:57:34 +05:30
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
2022-09-09 20:19:00 +05:30
android:layout_height="match_parent">
<ImageView
android:id="@+id/noInternet_settingsImageView"
2022-09-09 19:57:34 +05:30
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_gravity="end"
android:layout_margin="16dp"
2022-07-01 20:14:14 +05:30
android:background="?attr/selectableItemBackgroundBorderless"
2022-07-02 01:02:26 +05:30
android:padding="3dp"
2022-09-09 19:57:34 +05:30
android:src="@drawable/ic_settings" />
2022-09-09 19:57:34 +05:30
<LinearLayout
2022-09-09 20:19:00 +05:30
android:id="@+id/middle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2022-09-09 19:57:34 +05:30
android:layout_gravity="center"
android:orientation="vertical">
2022-09-09 19:57:34 +05:30
<ImageView
android:id="@+id/noInternet_imageView"
android:layout_width="200dp"
android:layout_height="200dp"
2022-11-23 22:18:30 +05:30
android:layout_gravity="center"
2022-09-09 19:57:34 +05:30
app:srcCompat="@drawable/ic_no_wifi" />
<TextView
android:id="@+id/noInternet_textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2022-11-23 22:18:30 +05:30
android:layout_gravity="center"
2022-09-09 19:57:34 +05:30
android:text="@string/noInternet" />
<com.google.android.material.button.MaterialButton
android:id="@+id/retry_button"
style="@style/ThemeOverlay.Material3.Button.ElevatedButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
2022-11-23 22:18:30 +05:30
android:layout_marginTop="20dp"
2022-09-09 19:57:34 +05:30
android:text="@string/retry"
android:textColor="?android:attr/colorBackground"
app:elevation="20dp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/downloads"
style="@style/ThemeOverlay.Material3.Button.ElevatedButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="5dp"
android:text="@string/downloads"
android:textColor="?android:attr/colorBackground"
app:elevation="20dp" />
</LinearLayout>
<FrameLayout
android:id="@+id/noInternet_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:elevation="20dp"
android:paddingTop="10dp" />
</FrameLayout>