2017-11-24 19:55:06 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
tools:context="fr.gouv.etalab.mastodon.activities.InstanceHealthActivity"
|
|
|
|
android:layout_margin="@dimen/fab_margin"
|
|
|
|
android:id="@+id/container"
|
2017-11-25 11:01:34 +01:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="300dp">
|
2017-11-24 19:55:06 +01:00
|
|
|
|
2017-12-05 19:36:36 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/instance_container"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/name"
|
|
|
|
android:textSize="20sp"
|
|
|
|
android:textColor="@color/titleb"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/values"
|
|
|
|
android:textColor="@color/dark_text"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
2017-11-24 19:55:06 +01:00
|
|
|
|
|
|
|
|
2017-12-05 19:36:36 +01:00
|
|
|
<TextView
|
|
|
|
android:textColor="@color/dark_text"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:id="@+id/checked_at"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
/>
|
2017-11-24 19:55:06 +01:00
|
|
|
|
2017-12-05 19:36:36 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/up"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
/>
|
2017-11-25 11:01:34 +01:00
|
|
|
|
2017-11-24 19:55:06 +01:00
|
|
|
|
2017-12-05 19:36:36 +01:00
|
|
|
<TextView
|
|
|
|
android:textColor="@color/dark_text"
|
|
|
|
android:id="@+id/uptime"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
/>
|
2017-11-24 19:55:06 +01:00
|
|
|
|
2017-12-05 19:36:36 +01:00
|
|
|
<TextView
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:id="@+id/ref_instance"
|
|
|
|
android:layout_gravity="end|center_vertical"
|
|
|
|
android:text="via instances.social"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:layout_marginEnd="5dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
tools:ignore="HardcodedText" />
|
2017-11-25 11:01:34 +01:00
|
|
|
|
2017-12-05 19:36:36 +01:00
|
|
|
<Button
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:id="@+id/close"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
android:text="@string/close"
|
|
|
|
android:textColor="@color/buttonb"
|
2018-11-03 14:45:55 +01:00
|
|
|
style="?attr/borderlessColored"
|
2017-12-05 19:36:36 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:id="@+id/loader"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
>
|
|
|
|
<ProgressBar
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:indeterminate="true" />
|
|
|
|
</RelativeLayout>
|
2017-11-24 19:55:06 +01:00
|
|
|
</LinearLayout>
|