xref: /aosp_15_r20/sdk/apps/NotificationStudio/res/layout/editable_item.xml (revision 1789df15502f1991eff51ff970dce5df8404dd56)
1*1789df15SXin Li<!--
2*1789df15SXin Li  Copyright 2012 The Android Open Source Project
3*1789df15SXin Li
4*1789df15SXin Li  Licensed under the Apache License, Version 2.0 (the "License");
5*1789df15SXin Li  you may not use this file except in compliance with the License.
6*1789df15SXin Li  You may obtain a copy of the License at
7*1789df15SXin Li
8*1789df15SXin Li      http://www.apache.org/licenses/LICENSE-2.0
9*1789df15SXin Li
10*1789df15SXin Li  Unless required by applicable law or agreed to in writing, software
11*1789df15SXin Li  distributed under the License is distributed on an "AS IS" BASIS,
12*1789df15SXin Li  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*1789df15SXin Li  See the License for the specific language governing permissions and
14*1789df15SXin Li  limitations under the License.
15*1789df15SXin Li  -->
16*1789df15SXin Li
17*1789df15SXin Li<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
18*1789df15SXin Li    android:id="@+id/list_item_text"
19*1789df15SXin Li    android:layout_width="match_parent"
20*1789df15SXin Li    android:layout_height="wrap_content"
21*1789df15SXin Li    android:padding="@dimen/editor_inset" >
22*1789df15SXin Li
23*1789df15SXin Li    <TextView
24*1789df15SXin Li        android:id="@+id/caption"
25*1789df15SXin Li        android:layout_width="@dimen/editor_caption_width"
26*1789df15SXin Li        android:layout_height="wrap_content"
27*1789df15SXin Li        android:paddingBottom="@dimen/caption_padding_bottom"
28*1789df15SXin Li        android:paddingTop="@dimen/caption_padding_top"
29*1789df15SXin Li        android:textSize="@dimen/editor_text_size" />
30*1789df15SXin Li
31*1789df15SXin Li    <EditText
32*1789df15SXin Li        android:id="@+id/text_editor"
33*1789df15SXin Li        android:layout_width="match_parent"
34*1789df15SXin Li        android:layout_height="wrap_content"
35*1789df15SXin Li        android:layout_alignBaseline="@id/caption"
36*1789df15SXin Li        android:layout_toRightOf="@id/caption"
37*1789df15SXin Li        android:imeOptions="actionDone"
38*1789df15SXin Li        android:inputType="text"
39*1789df15SXin Li        android:paddingTop="0dp"
40*1789df15SXin Li        android:textSize="@dimen/editor_text_size"
41*1789df15SXin Li        android:visibility="gone" />
42*1789df15SXin Li
43*1789df15SXin Li    <View
44*1789df15SXin Li        android:layout_width="0px"
45*1789df15SXin Li        android:layout_height="0px"
46*1789df15SXin Li        android:focusable="true"
47*1789df15SXin Li        android:focusableInTouchMode="true" />
48*1789df15SXin Li
49*1789df15SXin Li    <ViewStub
50*1789df15SXin Li        android:id="@+id/boolean_editor_stub"
51*1789df15SXin Li        android:layout_width="match_parent"
52*1789df15SXin Li        android:layout_height="wrap_content"
53*1789df15SXin Li        android:layout_alignBaseline="@id/caption"
54*1789df15SXin Li        android:layout_toRightOf="@id/caption"
55*1789df15SXin Li        android:textSize="@dimen/editor_text_size"
56*1789df15SXin Li        android:visibility="gone" />
57*1789df15SXin Li
58*1789df15SXin Li    <Spinner
59*1789df15SXin Li        android:id="@+id/drop_down_editor"
60*1789df15SXin Li        android:layout_width="match_parent"
61*1789df15SXin Li        android:layout_height="wrap_content"
62*1789df15SXin Li        android:layout_alignBaseline="@id/caption"
63*1789df15SXin Li        android:layout_toRightOf="@id/caption"
64*1789df15SXin Li        android:focusable="true"
65*1789df15SXin Li        android:focusableInTouchMode="true"
66*1789df15SXin Li        android:visibility="gone" />
67*1789df15SXin Li
68*1789df15SXin Li    <HorizontalScrollView
69*1789df15SXin Li        android:id="@+id/icon_editor_scroller"
70*1789df15SXin Li        android:layout_width="match_parent"
71*1789df15SXin Li        android:layout_height="wrap_content"
72*1789df15SXin Li        android:layout_toRightOf="@id/caption"
73*1789df15SXin Li        android:scrollbars="none"
74*1789df15SXin Li        android:visibility="gone" >
75*1789df15SXin Li
76*1789df15SXin Li        <LinearLayout
77*1789df15SXin Li            android:id="@+id/icon_editor_layout"
78*1789df15SXin Li            android:layout_width="wrap_content"
79*1789df15SXin Li            android:layout_height="wrap_content" >
80*1789df15SXin Li        </LinearLayout>
81*1789df15SXin Li    </HorizontalScrollView>
82*1789df15SXin Li
83*1789df15SXin Li    <Button
84*1789df15SXin Li        android:id="@+id/date_button"
85*1789df15SXin Li        android:layout_width="wrap_content"
86*1789df15SXin Li        android:layout_height="wrap_content"
87*1789df15SXin Li        android:layout_alignBaseline="@id/caption"
88*1789df15SXin Li        android:layout_toRightOf="@id/caption"
89*1789df15SXin Li        android:textSize="@dimen/editor_text_size"
90*1789df15SXin Li        android:visibility="gone" />
91*1789df15SXin Li
92*1789df15SXin Li    <Button
93*1789df15SXin Li        android:id="@+id/time_button"
94*1789df15SXin Li        android:layout_width="wrap_content"
95*1789df15SXin Li        android:layout_height="wrap_content"
96*1789df15SXin Li        android:layout_alignBaseline="@id/caption"
97*1789df15SXin Li        android:layout_toRightOf="@id/date_button"
98*1789df15SXin Li        android:textSize="@dimen/editor_text_size"
99*1789df15SXin Li        android:visibility="gone" />
100*1789df15SXin Li
101*1789df15SXin Li    <Button
102*1789df15SXin Li        android:id="@+id/reset_button"
103*1789df15SXin Li        android:layout_width="wrap_content"
104*1789df15SXin Li        android:layout_height="wrap_content"
105*1789df15SXin Li        android:layout_alignBaseline="@id/caption"
106*1789df15SXin Li        android:layout_toRightOf="@id/time_button"
107*1789df15SXin Li        android:text="@string/now"
108*1789df15SXin Li        android:textSize="@dimen/editor_text_size"
109*1789df15SXin Li        android:visibility="gone" />
110*1789df15SXin Li
111*1789df15SXin Li</RelativeLayout>