• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<FrameLayout
17        xmlns:android="http://schemas.android.com/apk/res/android"
18        android:id="@+id/confirmation"
19        android:layout_width="match_parent"
20        android:layout_height="match_parent">
21
22    <ScrollView
23            android:id="@+id/scrolling_container"
24            android:overScrollMode="never"
25            android:scrollbars="none"
26            android:layout_width="match_parent"
27            android:layout_height="match_parent">
28
29        <LinearLayout
30                android:id="@+id/content"
31                android:orientation="vertical"
32                android:layout_width="match_parent"
33                android:layout_height="wrap_content"
34                android:paddingTop="@dimen/conf_diag_content_padding_top">
35
36            <LinearLayout
37                    android:orientation="vertical"
38                    android:layout_width="match_parent"
39                    android:layout_height="wrap_content"
40                    android:minHeight="@dimen/conf_diag_min_space_above_message"
41                    android:gravity="bottom">
42                <TextView
43                        android:id="@+id/current_page_text"
44                        android:layout_width="wrap_content"
45                        android:layout_height="wrap_content"
46                        android:layout_gravity="center_horizontal"
47                        android:layout_marginTop="@dimen/grant_permissions_app_breadcrumb_margin_top"
48                        android:textAppearance="@style/GrantPermissions.BreadcrumbText" />
49
50                <ImageView
51                        android:id="@+id/icon"
52                        android:layout_width="@dimen/grant_permissions_app_icon_size"
53                        android:layout_height="@dimen/grant_permissions_app_icon_size"
54                        android:tint="@color/grant_permissions_app_color"
55                        android:layout_gravity="center_horizontal"
56                        android:layout_marginTop="@dimen/grant_permissions_app_icon_margin_top"/>
57            </LinearLayout>
58
59            <TextView
60                    android:id="@+id/message"
61                    android:layout_width="match_parent"
62                    android:layout_height="wrap_content"
63                    android:layout_marginTop="@dimen/grant_permissions_title_margin_top"
64                    android:paddingLeft="@dimen/grant_permissions_message_side_padding"
65                    android:paddingRight="@dimen/grant_permissions_message_side_padding"
66                    android:gravity="center"
67                    android:textAppearance="@style/GrantPermissions.TitleText"/>
68        </LinearLayout>
69    </ScrollView>
70
71    <!-- TODO: Change this to use a ViewStub instead of show/hiding the two layouts -->
72    <FrameLayout android:id="@+id/button_bar_container"
73                 android:layout_width="match_parent"
74                 android:layout_height="wrap_content"
75                 android:layout_gravity="bottom"
76                 android:background="#FF606060">
77        <FrameLayout
78            android:id="@+id/horizontal_button_bar"
79            android:layout_width="match_parent"
80            android:layout_height="@dimen/conf_diag_button_container_height">
81            <Button
82                android:id="@+id/permission_deny_button"
83                android:layout_width="54dp"
84                android:layout_height="54dp"
85                android:layout_gravity="top|left"
86                android:layout_marginLeft="@dimen/conf_diag_2button_margin_side"
87                android:layout_marginTop="@dimen/conf_diag_2button_margin_top"
88                android:background="@drawable/cancel_button"/>
89
90            <Button
91                android:id="@+id/permission_allow_button"
92                android:layout_width="54dp"
93                android:layout_height="54dp"
94                android:layout_gravity="top|right"
95                android:layout_marginRight="@dimen/conf_diag_2button_margin_side"
96                android:layout_marginTop="@dimen/conf_diag_2button_margin_top"
97                android:background="@drawable/confirm_button"/>
98        </FrameLayout>
99
100        <FrameLayout
101            android:id="@+id/vertical_button_bar"
102            android:layout_width="match_parent"
103            android:layout_height="wrap_content"
104            android:paddingLeft="@dimen/conf_diag_3button_padding_side"
105            android:paddingRight="@dimen/conf_diag_3button_padding_side"
106            android:visibility="gone">
107            <LinearLayout
108                android:id="@+id/buttonPanel"
109                android:layout_width="wrap_content"
110                android:layout_height="wrap_content"
111                android:orientation="vertical">
112                <Button
113                    android:id="@+id/vertical_button1"
114                    style="@style/Widget.WearDiag.Button"/>
115
116                <Button
117                    android:id="@+id/vertical_button2"
118                    style="@style/Widget.WearDiag.Button"/>
119
120                <Button
121                    android:id="@+id/vertical_button3"
122                    style="@style/Widget.WearDiag.Button"/>
123
124                <!-- Adding padding to the bottom button causes rendering issues, so add
125                     an empty view here instead -->
126                <Space android:layout_width="match_parent"
127                       android:layout_height="@dimen/conf_diag_3button_padding_bottom"/>
128            </LinearLayout>
129        </FrameLayout>
130    </FrameLayout>
131</FrameLayout>
132