2017-11-24 19:55:06 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-10-03 19:42:04 +02:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-11-24 19:55:06 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/container"
|
2019-10-03 19:42:04 +02:00
|
|
|
android:layout_width="wrap_content"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_height="300dp"
|
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
tools:context="app.fedilab.android.activities.InstanceHealthActivity">
|
|
|
|
|
2019-10-03 19:44:52 +02:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:alpha="0.2">
|
|
|
|
|
2019-10-03 19:44:52 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/back_ground_image"
|
|
|
|
android:layout_width="match_parent"
|
2019-11-09 17:36:17 +01:00
|
|
|
android:layout_height="match_parent"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:contentDescription="@string/logo_of_the_instance"
|
|
|
|
android:scaleType="centerCrop" />
|
2019-10-03 19:44:52 +02:00
|
|
|
</RelativeLayout>
|
2019-11-15 16:32:25 +01:00
|
|
|
|
2017-12-05 19:36:36 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/instance_container"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-10-03 19:42:04 +02:00
|
|
|
android:layout_margin="@dimen/fab_margin"
|
2017-12-05 19:36:36 +01:00
|
|
|
android:orientation="vertical"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:visibility="gone">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-11-23 12:13:33 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_height="wrap_content"
|
2019-11-23 12:13:33 +01:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:id="@+id/main_container">
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/name"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/values"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:gravity="center" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/checked_at"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginTop="10dp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/up"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/uptime"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginTop="10dp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/ref_instance"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_gravity="end|center_vertical"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_marginEnd="5dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="via instances.social"
|
|
|
|
tools:ignore="HardcodedText" />
|
|
|
|
</LinearLayout>
|
2017-12-05 19:36:36 +01:00
|
|
|
<TextView
|
2019-11-23 12:13:33 +01:00
|
|
|
android:layout_marginTop="50dp"
|
|
|
|
android:layout_marginBottom="50dp"
|
|
|
|
android:layout_width="match_parent"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_height="wrap_content"
|
2019-11-23 12:13:33 +01:00
|
|
|
android:gravity="center"
|
2017-12-05 19:36:36 +01:00
|
|
|
android:textSize="16sp"
|
2019-11-23 12:13:33 +01:00
|
|
|
android:id="@+id/no_instance"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:autoLink="web"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_gravity="center"
|
2019-11-23 12:13:33 +01:00
|
|
|
android:text="@string/no_instance_reccord"
|
|
|
|
/>
|
2017-12-05 19:36:36 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/close"
|
2019-11-15 16:32:25 +01:00
|
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-12-05 19:36:36 +01:00
|
|
|
android:layout_gravity="center"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_marginTop="20dp"
|
2017-12-05 19:36:36 +01:00
|
|
|
android:text="@string/close"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:textAllCaps="false"
|
2019-11-09 17:36:17 +01:00
|
|
|
android:textColor="@color/white"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:textSize="16sp" />
|
2017-12-05 19:36:36 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
2019-11-23 12:13:33 +01:00
|
|
|
|
2019-06-25 14:52:46 +02:00
|
|
|
<RelativeLayout
|
2017-12-05 19:36:36 +01:00
|
|
|
android:id="@+id/loader"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2019-10-03 19:42:04 +02:00
|
|
|
android:layout_gravity="center"
|
2019-09-06 17:55:14 +02:00
|
|
|
android:gravity="center">
|
|
|
|
|
2017-12-05 19:36:36 +01:00
|
|
|
<ProgressBar
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:indeterminate="true" />
|
|
|
|
</RelativeLayout>
|
2019-10-03 19:42:04 +02:00
|
|
|
|
2019-10-03 19:44:52 +02:00
|
|
|
|
2019-10-03 19:42:04 +02:00
|
|
|
</RelativeLayout>
|