Add UnreachableActivity for when the server cannot be reached.

This commit is contained in:
天クマ 2026-01-23 16:04:27 -03:00
commit 34c4bcc831
28 changed files with 279 additions and 39 deletions

View file

@ -0,0 +1,40 @@
<RelativeLayout
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"
android:gravity="center"
android:layout_margin="32dp"
tools:context=".fragments.OfflineFragment">
<TextView
android:id="@+id/offline_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="16dp"
android:text="@string/sad_face"
android:textAppearance="@style/TextAppearance.AppCompat.Display3" />
<TextView
android:id="@+id/error_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/offline_icon"
android:layout_centerHorizontal="true"
android:layout_marginTop="16dp"
android:text="@string/oops"
android:textAppearance="@style/TextAppearance.AppCompat.Large" />
<TextView
android:id="@+id/error_messsage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/error_title"
android:layout_centerHorizontal="true"
android:layout_marginTop="16dp"
android:text="@string/server_is_unreachable"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
</RelativeLayout>