0
0
Fork 0
mirror of https://github.com/YTVanced/VancedMicroG synced 2024-11-16 07:55:06 +00:00
VancedMicroG/res/layout/ask_permission.xml

134 lines
4.7 KiB
XML
Raw Normal View History

2015-02-07 19:56:49 +00:00
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright 2013-2015 µg Project Team
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
2015-02-09 22:16:37 +00:00
<TextView
android:gravity="center_horizontal"
android:paddingTop="10dp"
2015-02-09 22:16:37 +00:00
android:text="@string/account_manager_title"
android:textColor="?attr/colorPrimary"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<View
android:id="@+id/no_progress_bar"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
2015-02-09 22:16:37 +00:00
android:background="@color/dialog_border_color"
android:layout_width="match_parent"
android:layout_height="1dp" />
<ProgressBar
android:id="@+id/progress_bar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:indeterminate="true"
android:layout_marginTop="2dp"
android:layout_marginBottom="3dp"
android:visibility="gone"
style="?android:attr/progressBarStyleHorizontal" />
2015-02-07 19:56:49 +00:00
<LinearLayout
2015-02-09 22:16:37 +00:00
android:paddingTop="15dp"
2015-02-07 19:56:49 +00:00
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
2015-02-08 22:58:06 +00:00
2015-02-09 22:16:37 +00:00
<FrameLayout
android:background="@drawable/circle_shape_background"
android:layout_marginEnd="-3dp"
android:layout_marginRight="-3dp"
2015-02-07 19:56:49 +00:00
android:layout_width="64dp"
android:layout_height="64dp"
2015-02-09 22:16:37 +00:00
android:padding="10dp">
2015-02-08 22:58:06 +00:00
2015-02-09 22:16:37 +00:00
<de.hdodenhof.circleimageview.CircleImageView
android:src="@drawable/ic_generic_man"
android:id="@+id/account_photo"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
<FrameLayout
android:background="@drawable/circle_shape_background"
android:layout_marginStart="-3dp"
android:layout_marginLeft="-3dp"
2015-02-07 19:56:49 +00:00
android:layout_width="64dp"
android:layout_height="64dp"
2015-02-09 22:16:37 +00:00
android:padding="10dp">
<ImageView
android:src="@drawable/ic_microg_app"
android:id="@+id/app_icon"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
2015-02-08 22:58:06 +00:00
</LinearLayout>
<TextView
android:id="@+id/title"
2015-02-09 22:16:37 +00:00
android:padding="15dp"
2015-02-08 22:58:06 +00:00
android:gravity="center_horizontal"
android:textSize="18sp"
2015-02-09 22:16:37 +00:00
android:textColor="?attr/colorAccent"
android:text="@string/ask_scope_permission_title"
2015-02-08 22:58:06 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<ListView
2015-02-09 22:16:37 +00:00
android:padding="5dp"
2015-02-08 22:58:06 +00:00
android:id="@+id/permissions"
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="0dip" />
<TextView
android:padding="10dp"
2015-02-09 22:16:37 +00:00
android:textColor="?attr/colorPrimary"
android:textSize="12sp"
android:text="@string/ask_permission_tos"
2015-02-08 22:58:06 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<LinearLayout
2015-02-09 22:16:37 +00:00
android:layout_gravity="end"
2015-02-08 22:58:06 +00:00
android:orientation="horizontal"
2015-02-09 22:16:37 +00:00
android:paddingRight="10dp"
android:paddingLeft="10dp"
android:paddingBottom="5dp"
android:layout_width="wrap_content"
2015-02-08 22:58:06 +00:00
android:layout_height="wrap_content">
2015-02-09 22:16:37 +00:00
2015-02-08 22:58:06 +00:00
<Button
2015-02-09 22:16:37 +00:00
android:id="@android:id/button2"
style="?android:attr/buttonBarButtonStyle"
android:text="@string/deny"
android:layout_width="wrap_content"
2015-02-08 22:58:06 +00:00
android:layout_height="wrap_content" />
2015-02-09 22:16:37 +00:00
2015-02-08 22:58:06 +00:00
<Button
2015-02-09 22:16:37 +00:00
android:id="@android:id/button1"
style="?android:attr/buttonBarButtonStyle"
android:text="@string/allow"
android:layout_width="wrap_content"
2015-02-08 22:58:06 +00:00
android:layout_height="wrap_content" />
2015-02-07 19:56:49 +00:00
</LinearLayout>
</LinearLayout>