Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
23410 tejbeer 1
<?xml version="1.0" encoding="utf-8"?>
2
<!--
3
     Copyright (C) 2015 The Android Open Source Project
4
 
5
     Licensed under the Apache License, Version 2.0 (the "License");
6
     you may not use this file except in compliance with the License.
7
     You may obtain a copy of the License at
8
 
9
          http://www.apache.org/licenses/LICENSE-2.0
10
 
11
     Unless required by applicable law or agreed to in writing, software
12
     distributed under the License is distributed on an "AS IS" BASIS,
13
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
     See the License for the specific language governing permissions and
15
     limitations under the License.
16
-->
17
 
18
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19
        android:id="@+id/parentPanel"
20
        android:layout_width="match_parent"
21
        android:layout_height="wrap_content"
22
        android:orientation="vertical">
23
 
24
    <LinearLayout
25
            android:id="@+id/topPanel"
26
            android:layout_width="match_parent"
27
            android:layout_height="wrap_content"
28
            android:orientation="vertical">
29
 
30
        <LinearLayout
31
                android:id="@+id/title_template"
32
                android:layout_width="match_parent"
33
                android:layout_height="wrap_content"
34
                android:orientation="horizontal"
35
                android:gravity="center_vertical"
36
                android:paddingLeft="?attr/dialogPreferredPadding"
37
                android:paddingRight="?attr/dialogPreferredPadding"
38
                android:paddingTop="@dimen/abc_dialog_padding_top_material">
39
 
40
            <ImageView
41
                    android:id="@android:id/icon"
42
                    android:layout_width="32dip"
43
                    android:layout_height="32dip"
44
                    android:scaleType="fitCenter"
45
                    android:src="@null"
46
                    style="@style/RtlOverlay.Widget.AppCompat.DialogTitle.Icon"/>
47
 
48
            <android.support.v7.widget.DialogTitle
49
                    android:id="@+id/alertTitle"
50
                    style="?attr/android:windowTitleStyle"
51
                    android:singleLine="true"
52
                    android:ellipsize="end"
53
                    android:layout_width="match_parent"
54
                    android:layout_height="wrap_content"
55
                    android:textAlignment="viewStart" />
56
 
57
        </LinearLayout>
58
        <!-- If the client uses a customTitle, it will be added here. -->
59
    </LinearLayout>
60
 
61
    <FrameLayout
62
            android:id="@+id/contentPanel"
63
            android:layout_width="match_parent"
64
            android:layout_height="wrap_content"
65
            android:layout_weight="1"
66
            android:minHeight="48dp">
67
 
68
        <View android:id="@+id/scrollIndicatorUp"
69
              android:visibility="gone"
70
              android:layout_width="match_parent"
71
              android:layout_height="1dp"
72
              android:layout_gravity="top"
73
              android:background="?attr/colorControlHighlight"/>
74
 
75
        <android.support.v4.widget.NestedScrollView
76
                android:id="@+id/scrollView"
77
                android:layout_width="match_parent"
78
                android:layout_height="wrap_content"
79
                android:clipToPadding="false">
80
 
81
            <LinearLayout
82
                    android:layout_width="match_parent"
83
                    android:layout_height="wrap_content"
84
                    android:orientation="vertical">
85
 
86
                <TextView
87
                        android:id="@android:id/message"
88
                        style="@style/TextAppearance.AppCompat.Subhead"
89
                        android:layout_width="match_parent"
90
                        android:layout_height="wrap_content"
91
                        android:paddingLeft="?attr/dialogPreferredPadding"
92
                        android:paddingTop="@dimen/abc_dialog_padding_top_material"
93
                        android:paddingRight="?attr/dialogPreferredPadding"/>
94
 
95
                <View
96
                        android:id="@+id/textSpacerNoButtons"
97
                        android:visibility="gone"
98
                        android:layout_width="0dp"
99
                        android:layout_height="@dimen/abc_dialog_padding_top_material"/>
100
            </LinearLayout>
101
        </android.support.v4.widget.NestedScrollView>
102
 
103
        <View android:id="@+id/scrollIndicatorDown"
104
              android:visibility="gone"
105
              android:layout_width="match_parent"
106
              android:layout_height="1dp"
107
              android:layout_gravity="bottom"
108
              android:background="?attr/colorControlHighlight"/>
109
 
110
    </FrameLayout>
111
 
112
    <FrameLayout
113
            android:id="@+id/customPanel"
114
            android:layout_width="match_parent"
115
            android:layout_height="wrap_content"
116
            android:layout_weight="1"
117
            android:minHeight="48dp">
118
 
119
        <FrameLayout
120
                android:id="@+id/custom"
121
                android:layout_width="match_parent"
122
                android:layout_height="wrap_content"/>
123
    </FrameLayout>
124
 
125
    <include layout="@layout/abc_alert_dialog_button_bar_material" />
126
 
127
</LinearLayout>