Magisk/app/src/full/res/layout/fragment_magisk.xml

254 lines
12 KiB
XML
Raw Normal View History

2016-08-23 09:39:18 +00:00
<?xml version="1.0" encoding="utf-8"?>
2018-09-10 06:27:45 +00:00
<androidx.swiperefreshlayout.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: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:orientation="vertical">
2016-08-23 09:39:18 +00:00
<LinearLayout
android:id="@+id/linearLayout"
2016-08-23 09:39:18 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2018-09-10 06:27:45 +00:00
<androidx.cardview.widget.CardView
2017-05-23 08:51:23 +00:00
android:id="@+id/safetyNet_card"
2017-05-19 19:04:14 +00:00
style="?attr/cardStyle"
2016-08-23 09:39:18 +00:00
android:layout_width="match_parent"
2017-05-21 04:16:38 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="5dp"
android:layout_marginBottom="4dp"
2017-05-19 19:04:14 +00:00
app:cardCornerRadius="@dimen/card_corner_radius"
app:cardElevation="@dimen/card_elevation">
<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">
2019-01-30 22:11:03 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
2019-01-30 22:11:03 +00:00
android:layout_height="wrap_content">
<ImageView
android:id="@+id/sn_logo"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="24dp"
android:layout_marginBottom="12dp"
android:tint="@color/green500"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/safetyNet_status"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_safetynet" />
<TextView
android:id="@+id/safetyNet_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:minWidth="200dp"
android:text="@string/safetyNet_check_text"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
2017-05-19 19:04:14 +00:00
android:id="@+id/safetyNet_refresh"
android:layout_width="25dp"
android:layout_height="25dp"
2019-01-30 22:11:03 +00:00
android:layout_marginStart="24dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/safetyNet_status"
app:layout_constraintTop_toTopOf="parent"
2018-12-27 09:28:06 +00:00
app:srcCompat="@drawable/ic_refresh" />
<ProgressBar
2016-12-24 19:05:22 +00:00
android:id="@+id/safetyNet_check_progress"
2019-01-30 22:11:03 +00:00
android:layout_width="0dp"
android:layout_height="0dp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@+id/safetyNet_refresh"
app:layout_constraintEnd_toEndOf="@+id/safetyNet_refresh"
app:layout_constraintStart_toStartOf="@+id/safetyNet_refresh"
app:layout_constraintTop_toTopOf="@+id/safetyNet_refresh" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/safetyNet_expand"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dp">
<ImageView
android:id="@+id/cts_status_icon"
2017-05-19 19:04:14 +00:00
android:layout_width="25dp"
android:layout_height="25dp"
2019-01-30 22:11:03 +00:00
android:layout_marginEnd="8dp"
app:layout_constraintBottom_toBottomOf="@+id/cts_status"
app:layout_constraintEnd_toStartOf="@+id/cts_status"
app:layout_constraintTop_toTopOf="@+id/cts_status" />
2017-05-19 19:04:14 +00:00
<TextView
2019-01-30 22:11:03 +00:00
android:id="@+id/cts_status"
android:layout_width="0dp"
android:layout_height="wrap_content"
2017-05-19 19:04:14 +00:00
android:padding="6dp"
2019-01-30 22:11:03 +00:00
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="@+id/basic_status"
app:layout_constraintStart_toStartOf="@+id/basic_status"
app:layout_constraintTop_toTopOf="parent" />
2017-05-19 19:04:14 +00:00
2019-01-30 22:11:03 +00:00
<ImageView
android:id="@+id/basic_status_icon"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_marginEnd="8dp"
app:layout_constraintBottom_toBottomOf="@+id/basic_status"
app:layout_constraintEnd_toStartOf="@+id/basic_status"
app:layout_constraintTop_toTopOf="@+id/basic_status" />
2017-05-19 19:04:14 +00:00
2019-01-30 22:11:03 +00:00
<TextView
android:id="@+id/basic_status"
android:layout_width="wrap_content"
2017-05-19 19:04:14 +00:00
android:layout_height="wrap_content"
2019-01-30 22:11:03 +00:00
android:padding="6dp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/cts_status" />
</androidx.constraintlayout.widget.ConstraintLayout>
2016-08-23 09:39:18 +00:00
</LinearLayout>
2016-08-23 09:39:18 +00:00
2018-09-10 06:27:45 +00:00
</androidx.cardview.widget.CardView>
2016-08-23 09:39:18 +00:00
2018-09-10 06:27:45 +00:00
<androidx.cardview.widget.CardView
2017-05-21 04:16:38 +00:00
android:id="@+id/install_option_card"
style="?attr/cardStyle"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_marginStart="5dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="5dp"
android:layout_marginBottom="4dp"
2017-05-21 04:16:38 +00:00
app:cardCornerRadius="@dimen/card_corner_radius"
app:cardElevation="@dimen/card_elevation">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
2019-02-01 05:36:13 +00:00
android:orientation="vertical"
android:paddingTop="10dp"
android:paddingBottom="10dp">
2017-05-21 04:16:38 +00:00
2019-02-01 05:36:13 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
2017-05-21 04:16:38 +00:00
android:layout_width="match_parent"
2019-02-01 05:36:13 +00:00
android:layout_height="wrap_content">
2017-05-21 04:16:38 +00:00
2019-02-01 05:36:13 +00:00
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/advanced_settings_title"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:tint="?attr/imageColorTint"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/title"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_arrow" />
</androidx.constraintlayout.widget.ConstraintLayout>
<LinearLayout
android:id="@+id/install_option_expand"
2017-05-21 04:16:38 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-02-01 05:36:13 +00:00
android:orientation="vertical">
<CheckBox
android:id="@+id/keep_force_enc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="50dp"
android:layout_marginEnd="50dp"
android:text="@string/keep_force_encryption" />
<CheckBox
android:id="@+id/keep_verity"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="50dp"
android:layout_marginEnd="50dp"
android:text="@string/keep_dm_verity" />
</LinearLayout>
2017-05-21 04:16:38 +00:00
</LinearLayout>
2018-09-10 06:27:45 +00:00
</androidx.cardview.widget.CardView>
2017-05-21 04:16:38 +00:00
2018-09-10 06:27:45 +00:00
<androidx.cardview.widget.CardView
2017-05-21 04:16:38 +00:00
android:id="@+id/uninstall_button"
style="?attr/cardStyle"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_marginBottom="4dp"
android:layout_marginEnd="5dp"
android:layout_marginStart="5dp"
android:layout_marginTop="4dp"
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground"
app:cardCornerRadius="@dimen/card_corner_radius"
2017-11-17 03:49:20 +00:00
app:cardElevation="@dimen/card_elevation"
android:focusable="true">
2017-05-21 04:16:38 +00:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginTop="10dp"
android:ems="10"
android:fontFamily="sans-serif"
android:gravity="center"
android:text="@string/uninstall"
android:textAllCaps="false"
android:textSize="20sp"
android:textStyle="bold" />
2018-09-10 06:27:45 +00:00
</androidx.cardview.widget.CardView>
2017-05-21 04:16:38 +00:00
</LinearLayout>
2016-08-27 19:52:03 +00:00
</ScrollView>
2016-08-23 09:39:18 +00:00
2018-09-10 06:27:45 +00:00
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>