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

127 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"
2018-12-27 09:28:06 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2017-01-24 18:16:36 +00:00
android:id="@+id/su_popup"
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:layout_gravity="center"
android:background="?attr/colorBackgroundFloating"
android:minWidth="350dp"
2019-02-03 09:59:04 +00:00
android:orientation="vertical">
<TextView
android:id="@+id/request_title"
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:layout_gravity="center_horizontal"
android:layout_marginTop="20dp"
android:layout_marginBottom="5dp"
android:gravity="center_horizontal"
android:text="@string/su_request_title"
android:textAppearance="?android:attr/textAppearanceLarge" />
<LinearLayout
2017-01-24 17:01:12 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:orientation="horizontal"
2019-02-03 09:59:04 +00:00
android:paddingLeft="10dp"
android:paddingRight="10dp">
<ImageView
android:id="@+id/app_icon"
2017-01-24 17:01:12 +00:00
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center_vertical"
2017-01-24 17:01:12 +00:00
android:layout_marginStart="5dp"
android:layout_marginLeft="5dp"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
android:layout_weight="0" />
<LinearLayout
android:layout_width="wrap_content"
2017-01-24 17:01:12 +00:00
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2017-01-24 17:01:12 +00:00
android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="vertical">
<TextView
android:id="@+id/app_name"
2017-01-24 17:01:12 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
2017-01-24 17:01:12 +00:00
android:maxWidth="300dp"
android:maxLines="1"
android:minWidth="200dp"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:textColorPrimary" />
<TextView
android:id="@+id/package_name"
2017-01-24 17:01:12 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
2017-01-24 17:01:12 +00:00
android:maxWidth="300dp"
android:maxLines="1"
android:minWidth="200dp"
android:textColor="?android:textColorSecondary" />
</LinearLayout>
</LinearLayout>
<Spinner
android:id="@+id/timeout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" />
<TextView
android:id="@+id/warning"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_margin="5dp"
android:drawablePadding="10dp"
android:text="@string/su_warning"
android:textColor="?android:textColorSecondary" />
<LinearLayout
style="?android:buttonBarStyle"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom"
android:orientation="horizontal"
android:paddingLeft="30dp"
android:paddingRight="30dp">
<Button
android:id="@+id/deny_btn"
style="?android:buttonBarButtonStyle"
2018-01-11 17:53:49 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/deny_with_str" />
<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"
2018-12-27 09:28:06 +00:00
app:srcCompat="@drawable/ic_fingerprint" />
</LinearLayout>
</LinearLayout>