116 lines
4.4 KiB
XML
116 lines
4.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Twidere - Twitter client for Android
|
|
~
|
|
~ Copyright (C) 2012-2014 Mariotaku Lee <mariotaku.lee@gmail.com>
|
|
~
|
|
~ This program is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU General Public License as published by
|
|
~ the Free Software Foundation, either version 3 of the License, or
|
|
~ (at your option) any later version.
|
|
~
|
|
~ This program is distributed in the hope that it will be useful,
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
~ GNU General Public License for more details.
|
|
~
|
|
~ You should have received a copy of the GNU General Public License
|
|
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
-->
|
|
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:divider="?android:dividerVertical"
|
|
android:orientation="vertical"
|
|
android:showDividers="middle"
|
|
tools:context=".activity.support.RequestPermissionsActivity">
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="8dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@android:id/icon"
|
|
android:layout_width="56dp"
|
|
android:layout_height="56dp"
|
|
android:layout_margin="4dp"
|
|
android:contentDescription="@string/icon"
|
|
android:scaleType="fitCenter"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@android:id/text1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:textStyle="bold"/>
|
|
|
|
<TextView
|
|
android:id="@android:id/text2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/message"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingBottom="16dp"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/buttons"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/button_bar_height"
|
|
android:divider="?android:dividerHorizontal"
|
|
android:orientation="horizontal"
|
|
android:showDividers="middle">
|
|
|
|
<Button
|
|
android:id="@+id/accept"
|
|
style="?android:borderlessButtonStyle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="@string/accept_permission_request"/>
|
|
|
|
<Button
|
|
android:id="@+id/deny"
|
|
style="?android:borderlessButtonStyle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="@string/no_thanks"/>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |