2017-01-24 06:19:28 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-01-24 17:01:12 +00:00
|
|
|
tools:context=".superuser.RequestActivity"
|
2017-01-24 06:19:28 +00:00
|
|
|
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"
|
|
|
|
android:orientation="vertical">
|
2017-01-24 06:19:28 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:text="@string/su_request_title"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_width="wrap_content"
|
2017-01-24 06:19:28 +00:00
|
|
|
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"/>
|
2017-01-24 06:19:28 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_width="wrap_content"
|
2017-01-24 06:19:28 +00:00
|
|
|
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">
|
2017-01-24 06:19:28 +00:00
|
|
|
|
|
|
|
<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" />
|
2017-01-24 06:19:28 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="wrap_content"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_height="wrap_content"
|
2017-01-24 06:19:28 +00:00
|
|
|
android:gravity="center_vertical"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_gravity="center_vertical">
|
2017-01-24 06:19:28 +00:00
|
|
|
|
|
|
|
<TextView
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_width="wrap_content"
|
2017-01-24 06:19:28 +00:00
|
|
|
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"
|
2017-01-24 06:19:28 +00:00
|
|
|
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"
|
2017-01-24 06:19:28 +00:00
|
|
|
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"
|
2017-01-24 06:19:28 +00:00
|
|
|
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"
|
|
|
|
android:text="@string/deny"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/deny_btn"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
style="?android:buttonBarButtonStyle"
|
|
|
|
android:text="@string/grant"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/grant_btn"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|