ask_gcm.xml 3.56 KB
Newer Older
Marvin W.'s avatar
Marvin W. committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2015 The Android Open Source Project

     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.
-->

17
<ScrollView
Marvin W.'s avatar
Marvin W. committed
18
    xmlns:android="http://schemas.android.com/apk/res/android"
Marvin W.'s avatar
Marvin W. committed
19
    xmlns:app="http://schemas.android.com/apk/res-auto"
20
21
    android:layout_width="match_parent"
    android:layout_height="match_parent">
Marvin W.'s avatar
Marvin W. committed
22
23
24

    <LinearLayout
        android:id="@+id/dialog_container"
25
        android:layout_width="match_parent"
Marvin W.'s avatar
Marvin W. committed
26
        android:layout_height="wrap_content"
27
        android:background="?android:attr/colorBackground"
Marvin W.'s avatar
Marvin W. committed
28
29
        android:orientation="vertical">

30
        <LinearLayout
Marvin W.'s avatar
Marvin W. committed
31
32
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
            android:gravity="center"
            android:orientation="vertical"
            android:paddingLeft="24dp"
            android:paddingTop="18dp"
            android:paddingRight="24dp"
            android:paddingBottom="24dp">

            <ImageView
                android:id="@+id/permission_icon"
                android:layout_width="24dp"
                android:layout_height="24dp"
                android:layout_marginBottom="12dp"
                android:scaleType="fitCenter"
                android:src="@drawable/ic_cloud_bell"
                app:tint="?attr/colorAccent">
            </ImageView>

            <TextView
                android:id="@+id/permission_message"
                android:layout_width="match_parent"
Marvin W.'s avatar
Marvin W. committed
53
                android:layout_height="wrap_content"
54
55
56
57
58
59
60
61
62
63
64
                android:gravity="center"
                android:text="@string/gcm_allow_app_popup"
                android:textSize="18sp">
            </TextView>

        </LinearLayout>

        <View
            android:layout_width="match_parent"
            android:layout_height="0.25dp"
            android:background="?android:attr/textColorSecondary" />
Marvin W.'s avatar
Marvin W. committed
65
66
67
68

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
69
            android:orientation="vertical">
Marvin W.'s avatar
Marvin W. committed
70

71
            <Button
72
73
74
75
76
77
78
                android:id="@+id/permission_allow_button"
                android:layout_width="match_parent"
                android:layout_height="56dp"
                android:background="?android:attr/selectableItemBackground"
                android:paddingLeft="8dp"
                android:paddingRight="8dp"
                android:text="@string/allow">
79
            </Button>
Marvin W.'s avatar
Marvin W. committed
80

81
82
83
84
85
            <View
                android:layout_width="match_parent"
                android:layout_height="0.25dp"
                android:background="?android:attr/textColorSecondary" />

86
            <Button
87
88
89
90
91
92
93
                android:id="@+id/permission_deny_button"
                android:layout_width="match_parent"
                android:layout_height="56dp"
                android:background="?android:attr/selectableItemBackground"
                android:paddingLeft="8dp"
                android:paddingRight="8dp"
                android:text="@string/deny">
94
            </Button>
Marvin W.'s avatar
Marvin W. committed
95
96
97
98
99

        </LinearLayout>

    </LinearLayout>

100
</ScrollView>