Skip to content

Most visited

Recently visited

navigation
Notifications / Application / res / layout /

main.xml

2
<!-- Copyright (C) 2014 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
 
17
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
18
        xmlns:tools="http://schemas.android.com/tools"
19
        android:layout_width="match_parent"
20
        android:layout_height="match_parent"
21
        android:paddingBottom="@dimen/activity_vertical_margin"
22
        android:paddingLeft="@dimen/activity_horizontal_margin"
23
        android:paddingRight="@dimen/activity_horizontal_margin"
24
        android:paddingTop="@dimen/activity_vertical_margin"
25
        tools:context="com.example.android.support.wearable.notifications.MainActivity"
26
        tools:ignore="MergeRootFrame">
27
 
28
    <LinearLayout android:id="@+id/container"
29
            android:layout_width="match_parent"
30
            android:layout_height="wrap_content"
31
            android:orientation="vertical">
32
 
33
        <include layout="@layout/layout_divider" />
34
 
35
        <LinearLayout
36
                android:layout_width="match_parent"
37
                android:layout_height="wrap_content"
38
                android:orientation="horizontal">
39
 
40
            <TextView
41
                    android:layout_height="wrap_content"
42
                    android:layout_width="wrap_content"
43
                    android:minWidth="@dimen/editor_spinner_caption_min_width"
44
                    android:minHeight="?android:attr/listPreferredItemHeightSmall"
45
                    android:gravity="center_vertical"
46
                    android:text="@string/preset" />
47
 
48
            <Spinner android:id="@+id/preset_spinner"
49
                    android:layout_marginLeft="10dp"
50
                    android:layout_width="match_parent"
51
                    android:layout_height="wrap_content" />
52
 
53
        </LinearLayout>
54
 
55
        <LinearLayout
56
                android:layout_width="match_parent"
57
                android:layout_height="wrap_content"
58
                android:orientation="horizontal">
59
 
60
            <TextView
61
                    android:layout_height="wrap_content"
62
                    android:layout_width="wrap_content"
63
                    android:minWidth="@dimen/editor_spinner_caption_min_width"
64
                    android:minHeight="?android:attr/listPreferredItemHeightSmall"
65
                    android:gravity="center_vertical"
66
                    android:text="@string/priority" />
67
 
68
            <Spinner android:id="@+id/priority_spinner"
69
                    android:layout_marginLeft="10dp"
70
                    android:layout_width="match_parent"
71
                    android:layout_height="wrap_content" />
72
 
73
        </LinearLayout>
74
 
75
        <LinearLayout
76
                android:layout_width="match_parent"
77
                android:layout_height="wrap_content"
78
                android:orientation="horizontal">
79
 
80
            <TextView
81
                    android:layout_height="wrap_content"
82
                    android:layout_width="wrap_content"
83
                    android:minWidth="@dimen/editor_spinner_caption_min_width"
84
                    android:minHeight="?android:attr/listPreferredItemHeightSmall"
85
                    android:gravity="center_vertical"
86
                    android:text="@string/actions" />
87
 
88
            <Spinner android:id="@+id/actions_spinner"
89
                    android:layout_marginLeft="10dp"
90
                    android:layout_width="match_parent"
91
                    android:layout_height="wrap_content" />
92
 
93
        </LinearLayout>
94
 
95
        <LinearLayout
96
                android:id="@+id/title_edit_field"
97
                android:layout_width="match_parent"
98
                android:layout_height="wrap_content"
99
                android:orientation="horizontal">
100
 
101
            <TextView
102
                    android:layout_height="wrap_content"
103
                    android:layout_width="wrap_content"
104
                    android:minWidth="@dimen/editor_spinner_caption_min_width"
105
                    android:minHeight="?android:attr/listPreferredItemHeightSmall"
106
                    android:gravity="center_vertical"
107
                    android:text="@string/title" />
108
 
109
            <EditText android:id="@+id/title_editor"
110
                    android:layout_marginLeft="10dp"
111
                    android:layout_width="match_parent"
112
                    android:layout_height="wrap_content" />
113
 
114
        </LinearLayout>
115
 
116
        <LinearLayout
117
                android:id="@+id/text_edit_field"
118
                android:layout_width="match_parent"
119
                android:layout_height="wrap_content"
120
                android:orientation="horizontal">
121
 
122
            <TextView
123
                    android:layout_height="wrap_content"
124
                    android:layout_width="wrap_content"
125
                    android:minWidth="@dimen/editor_spinner_caption_min_width"
126
                    android:minHeight="?android:attr/listPreferredItemHeightSmall"
127
                    android:gravity="center_vertical"
128
                    android:text="@string/text" />
129
 
130
            <EditText android:id="@+id/text_editor"
131
                    android:layout_marginLeft="10dp"
132
                    android:layout_width="match_parent"
133
                    android:layout_height="wrap_content" />
134
 
135
        </LinearLayout>
136
 
137
        <CheckBox android:id="@+id/include_large_icon_checkbox"
138
                android:layout_height="wrap_content"
139
                android:layout_width="wrap_content"
140
                android:paddingTop="@dimen/editor_item_padding_top"
141
                android:paddingBottom="@dimen/editor_item_padding_bottom"
142
                android:text="@string/include_large_icon" />
143
 
144
        <CheckBox android:id="@+id/local_only_checkbox"
145
                android:layout_height="wrap_content"
146
                android:layout_width="wrap_content"
147
                android:paddingTop="@dimen/editor_item_padding_top"
148
                android:paddingBottom="@dimen/editor_item_padding_bottom"
149
                android:text="@string/local_only" />
150
 
151
        <CheckBox android:id="@+id/include_content_intent_checkbox"
152
                android:layout_height="wrap_content"
153
                android:layout_width="wrap_content"
154
                android:paddingTop="@dimen/editor_item_padding_top"
155
                android:paddingBottom="@dimen/editor_item_padding_bottom"
156
                android:text="@string/include_content_intent" />
157
 
158
        <CheckBox android:id="@+id/vibrate_checkbox"
159
                  android:layout_height="wrap_content"
160
                  android:layout_width="wrap_content"
161
                  android:paddingTop="@dimen/editor_item_padding_top"
162
                  android:paddingBottom="@dimen/editor_item_padding_bottom"
163
                  android:text="@string/vibrate" />
164
 
165
        <LinearLayout android:id="@+id/background_pickers"
166
                android:layout_width="match_parent"
167
                android:layout_height="wrap_content"
168
                android:orientation="vertical">
169
        </LinearLayout>
170
 
171
    </LinearLayout>
172
 
173
</ScrollView>
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!