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

214 lines
8.1 KiB
XML
Raw Normal View History

2016-12-24 19:05:22 +00:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
2016-12-25 09:17:20 +00:00
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_marginTop="?attr/actionBarSize"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:id="@+id/install_info_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginTop="6dp"
style="?attr/cardStyle"
app:cardUseCompatPadding="true">
2017-01-06 18:46:50 +00:00
<LinearLayout
android:orientation="vertical"
2016-12-25 09:17:20 +00:00
android:layout_width="match_parent"
2017-01-06 18:46:50 +00:00
android:layout_height="match_parent"
2017-01-10 14:30:05 +00:00
android:padding="5dp">
2017-01-06 18:46:50 +00:00
<TextView
android:id="@+id/install_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:padding="5dp"
android:textStyle="bold" />
<TextView
android:id="@+id/current_version_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:padding="5dp"
android:textStyle="bold" />
</LinearLayout>
2016-12-25 09:17:20 +00:00
</android.support.v7.widget.CardView>
2016-12-25 14:36:51 +00:00
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="match_parent"
2016-12-25 09:17:20 +00:00
android:layout_gravity="center"
2016-12-25 14:36:51 +00:00
android:maxWidth="400dp"
android:minWidth="400dp">
2016-12-25 09:17:20 +00:00
2016-12-25 14:36:51 +00:00
<android.support.v7.widget.CardView
android:id="@+id/bootimage_card"
android:layout_gravity="center"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginTop="6dp"
style="?attr/cardStyle"
app:cardUseCompatPadding="true"
android:layout_width="match_parent">
2016-12-25 09:17:20 +00:00
<LinearLayout
2016-12-25 14:36:51 +00:00
android:orientation="vertical"
2016-12-25 09:17:20 +00:00
android:layout_width="match_parent"
2016-12-25 14:36:51 +00:00
android:layout_height="match_parent"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp">
2016-12-25 09:17:20 +00:00
2016-12-25 14:36:51 +00:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:paddingBottom="10dp"
android:text="@string/boot_image_title"
android:textStyle="bold" />
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
2016-12-25 09:17:20 +00:00
android:layout_height="match_parent"
2016-12-25 14:36:51 +00:00
android:layout_marginEnd="15dp"
android:layout_marginStart="15dp">
<Spinner
android:layout_width="0dp"
android:layout_height="match_parent"
android:id="@+id/block_spinner"
android:layout_weight="1" />
<Button
android:text="@string/detect_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/detect_bootimage"/>
</LinearLayout>
2016-12-25 09:17:20 +00:00
</LinearLayout>
2016-12-25 14:36:51 +00:00
</android.support.v7.widget.CardView>
2016-12-25 09:17:20 +00:00
2016-12-25 14:36:51 +00:00
<android.support.v7.widget.CardView
android:id="@+id/install_option_card"
android:layout_gravity="center"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginTop="6dp"
style="?attr/cardStyle"
app:cardUseCompatPadding="true"
android:layout_width="match_parent">
2016-12-25 09:17:20 +00:00
2016-12-25 14:36:51 +00:00
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp">
2016-12-25 09:17:20 +00:00
2016-12-25 14:36:51 +00:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:paddingBottom="10dp"
android:text="@string/advanced_settings_title"
android:textStyle="bold" />
<CheckBox
android:text="@string/keep_force_encryption"
android:id="@+id/keep_force_enc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="25dp"
android:layout_marginStart="25dp" />
2016-12-25 09:17:20 +00:00
2016-12-25 14:36:51 +00:00
<CheckBox
android:text="@string/keep_dm_verity"
android:id="@+id/keep_verity"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="25dp"
android:layout_marginStart="25dp" />
2016-12-25 09:17:20 +00:00
2016-12-25 14:36:51 +00:00
</LinearLayout>
</android.support.v7.widget.CardView>
2016-12-25 09:17:20 +00:00
2016-12-26 09:15:46 +00:00
<android.support.v7.widget.CardView
android:id="@+id/flash_button"
android:layout_gravity="center"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginTop="6dp"
style="?attr/cardStyle"
app:cardUseCompatPadding="true"
android:layout_width="match_parent"
android:foreground="?android:attr/selectableItemBackground"
android:clickable="true">
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
android:layout_marginEnd="25dp"
android:layout_marginStart="25dp">
<ImageView
android:layout_width="50dp"
android:layout_height="wrap_content"
app:srcCompat="@mipmap/ic_launcher"
android:id="@+id/imageView"
android:layout_weight="0"
android:layout_marginEnd="20dp"/>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
2016-12-26 20:38:16 +00:00
android:text="@string/magiskify"
2016-12-26 09:15:46 +00:00
android:ems="10"
android:gravity="center"
android:layout_weight="1"
android:textStyle="bold"
android:textAllCaps="false"
android:textSize="20sp"
android:fontFamily="sans-serif" />
<FrameLayout
android:layout_width="50dp"
android:layout_height="match_parent"
android:layout_weight="0"
android:layout_marginStart="20dp">
</FrameLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
2016-12-25 14:36:51 +00:00
</LinearLayout>
2016-12-24 19:05:22 +00:00
</LinearLayout>