Magisk/app/src/main/res/layout/fragment_status.xml

197 lines
7.9 KiB
XML
Raw Normal View History

2016-08-23 09:39:18 +00:00
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/swipeRefreshLayout"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_marginTop="?attr/actionBarSize"
android:orientation="vertical">
2017-01-26 19:32:15 +00:00
<ScrollView
2016-09-30 10:22:43 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="8dp"
android:layout_marginTop="?attr/actionBarSize"
android:orientation="vertical">
2016-08-23 09:39:18 +00:00
<LinearLayout
2016-08-23 09:39:18 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<android.support.v7.widget.CardView
2016-08-23 09:39:18 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:layout_marginLeft="5dip"
android:layout_marginRight="5dip"
android:layout_marginTop="6dp"
style="?attr/cardStyle"
app:cardUseCompatPadding="true">
<LinearLayout
2016-08-23 09:39:18 +00:00
android:layout_width="match_parent"
2017-05-19 15:37:57 +00:00
android:layout_height="match_parent"
android:gravity="center"
android:orientation="horizontal">
<ProgressBar
android:id="@+id/magisk_check_updates_progress"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_margin="15dp" />
<ImageView
android:id="@+id/magisk_update_icon"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_margin="15dp"
android:visibility="gone" />
<TextView
2016-12-24 19:05:22 +00:00
android:id="@+id/magisk_update_status"
2017-05-19 15:37:57 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-05-19 15:37:57 +00:00
android:minWidth="225dp"
android:layout_gravity="center"
android:gravity="center"
android:padding="6dp"
2016-12-24 19:05:22 +00:00
android:textStyle="bold"
android:text="@string/checking_for_updates" />
2016-08-23 09:39:18 +00:00
</LinearLayout>
2016-08-23 09:39:18 +00:00
</android.support.v7.widget.CardView>
2016-08-23 09:39:18 +00:00
<android.support.v7.widget.CardView
2016-08-23 09:39:18 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:layout_marginLeft="5dip"
android:layout_marginRight="5dip"
android:layout_marginTop="6dp"
style="?attr/cardStyle"
app:cardUseCompatPadding="true">
<LinearLayout
2016-08-23 09:39:18 +00:00
android:layout_width="match_parent"
2017-05-19 15:37:57 +00:00
android:layout_height="match_parent"
android:gravity="center"
android:orientation="horizontal">
<ImageView
android:id="@+id/magisk_status_icon"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_margin="15dp" />
2016-08-23 09:39:18 +00:00
2016-12-24 19:05:22 +00:00
<TextView
2017-05-19 15:37:57 +00:00
android:id="@+id/magisk_version"
android:layout_width="wrap_content"
2016-12-24 19:05:22 +00:00
android:layout_height="wrap_content"
2017-05-19 15:37:57 +00:00
android:minWidth="225dp"
2016-12-24 19:05:22 +00:00
android:layout_gravity="center"
android:gravity="center"
android:padding="6dp"
2017-05-19 15:37:57 +00:00
android:textStyle="bold" />
</LinearLayout>
</android.support.v7.widget.CardView>
2016-12-24 19:05:22 +00:00
2017-05-19 15:37:57 +00:00
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:layout_marginLeft="5dip"
android:layout_marginRight="5dip"
android:layout_marginTop="6dp"
style="?attr/cardStyle"
app:cardUseCompatPadding="true">
2017-05-19 15:37:57 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="horizontal">
2017-05-19 15:37:57 +00:00
<ImageView
android:id="@+id/root_status_icon"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_margin="15dp" />
<TextView
2017-05-19 15:37:57 +00:00
android:id="@+id/root_status"
android:layout_width="wrap_content"
2016-08-26 10:45:35 +00:00
android:layout_height="wrap_content"
2017-05-19 15:37:57 +00:00
android:minWidth="225dp"
android:layout_gravity="center"
android:gravity="center"
android:padding="6dp"
2017-05-19 15:37:57 +00:00
android:textStyle="bold" />
2016-08-23 09:39:18 +00:00
</LinearLayout>
2016-08-23 09:39:18 +00:00
</android.support.v7.widget.CardView>
2016-08-23 09:39:18 +00:00
<android.support.v7.widget.CardView
2016-12-24 19:05:22 +00:00
android:id="@+id/safetyNetView"
2016-08-23 09:39:18 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:layout_marginLeft="5dip"
android:layout_marginRight="5dip"
android:layout_marginTop="6dp"
style="?attr/cardStyle"
app:cardUseCompatPadding="true">
<LinearLayout
2016-08-23 09:39:18 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-08-23 09:39:18 +00:00
android:orientation="vertical">
<FrameLayout
2016-12-24 19:05:22 +00:00
android:id="@+id/safetyNet_container"
android:layout_width="match_parent"
android:layout_height="100dp"
android:foregroundGravity="center"
2017-01-06 17:19:18 +00:00
android:orientation="vertical"
android:background="@color/grey500">
<ImageView
2016-12-24 19:05:22 +00:00
android:id="@+id/safetyNet_icon"
android:layout_width="84dp"
android:layout_height="84dp"
2017-01-06 17:19:18 +00:00
android:layout_gravity="center"
android:src="@drawable/ic_safetynet"/>
<ProgressBar
2016-12-24 19:05:22 +00:00
android:id="@+id/safetyNet_check_progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-01-06 17:19:18 +00:00
android:layout_gravity="center"
android:visibility="gone"/>
</FrameLayout>
<TextView
2016-12-24 19:05:22 +00:00
android:id="@+id/safetyNet_status"
android:layout_width="match_parent"
2016-08-26 10:45:35 +00:00
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:padding="6dp"
2016-12-24 19:05:22 +00:00
android:textStyle="bold"
2017-01-06 17:19:18 +00:00
android:text="@string/safetyNet_check_text" />
2016-08-23 09:39:18 +00:00
</LinearLayout>
2016-08-23 09:39:18 +00:00
</android.support.v7.widget.CardView>
2016-08-23 09:39:18 +00:00
</LinearLayout>
2016-08-27 19:52:03 +00:00
</ScrollView>
2016-08-23 09:39:18 +00:00
</android.support.v4.widget.SwipeRefreshLayout>