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

128 lines
4.5 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
2017-01-24 18:16:36 +00:00
android:id="@+id/su_popup"
2017-01-24 17:01:12 +00:00
tools:context=".superuser.RequestActivity"
android:layout_height="wrap_content"
2017-01-24 17:01:12 +00:00
android:layout_width="wrap_content"
android:minWidth="350dp"
android:layout_gravity="center"
2017-12-03 07:15:00 +00:00
android:orientation="vertical"
android:background="?attr/colorBackgroundFloating">
<TextView
android:text="@string/su_request_title"
2017-01-24 17:01:12 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:id="@+id/request_title"
2017-01-24 17:01:12 +00:00
android:gravity="center_horizontal"
android:layout_gravity="center_horizontal"
android:layout_marginTop="20dp"
android:layout_marginBottom="5dp"/>
<LinearLayout
android:orientation="horizontal"
2017-01-24 17:01:12 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
2017-01-24 17:01:12 +00:00
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:layout_gravity="center_horizontal">
<ImageView
android:id="@+id/app_icon"
2017-01-24 17:01:12 +00:00
android:layout_weight="0"
android:layout_marginEnd="10dp"
android:layout_height="50dp"
android:layout_width="50dp"
android:layout_marginStart="5dp"
android:layout_gravity="center_vertical" />
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
2017-01-24 17:01:12 +00:00
android:layout_height="wrap_content"
android:gravity="center_vertical"
2017-01-24 17:01:12 +00:00
android:layout_weight="1"
android:layout_gravity="center_vertical">
<TextView
2017-01-24 17:01:12 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-01-24 17:01:12 +00:00
android:minWidth="200dp"
android:maxWidth="300dp"
android:maxLines="1"
android:ellipsize="end"
android:textColor="?android:textColorPrimary"
android:textAppearance="?android:attr/textAppearanceMedium"
android:id="@+id/app_name" />
<TextView
2017-01-24 17:01:12 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-01-24 17:01:12 +00:00
android:minWidth="200dp"
android:maxWidth="300dp"
android:maxLines="1"
android:ellipsize="end"
android:textColor="?android:textColorSecondary"
android:id="@+id/package_name" />
</LinearLayout>
</LinearLayout>
<Spinner
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/timeout"
android:layout_gravity="center_horizontal" />
<TextView
android:id="@+id/warning"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableStart="@drawable/ic_su_warning"
android:textColor="?android:textColorSecondary"
android:text="@string/su_warning"
android:layout_gravity="center_horizontal"
android:layout_margin="5dp"
android:drawablePadding="10dp" />
<LinearLayout
style="?android:buttonBarStyle"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom"
android:paddingLeft="30dp"
android:paddingRight="30dp">
<Button
style="?android:buttonBarButtonStyle"
2017-01-27 22:13:07 +00:00
android:text="@string/deny_with_str"
2018-01-11 17:53:49 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:id="@+id/deny_btn"
android:layout_weight="1" />
<Button
2018-01-11 17:53:49 +00:00
android:id="@+id/grant_btn"
style="?android:buttonBarButtonStyle"
2018-01-11 17:53:49 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
2018-01-11 17:53:49 +00:00
android:layout_weight="1"
android:text="@string/grant" />
<ImageView
android:id="@+id/fingerprint"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:padding="7dp"
android:tint="?attr/colorAccent"
android:src="@drawable/ic_fingerprint" />
</LinearLayout>
</LinearLayout>