OSDN Git Service

am 32cc4dd7: Fix UI performances / glitches
[android-x86/packages-apps-Gallery2.git] / res / layout-land / filtershow_draw_ui.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3      Copyright (C) 2013 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/top"
20               android:layout_width="match_parent"
21               android:layout_height="match_parent"
22               android:orientation="vertical"
23               android:visibility="visible">
24
25     <FrameLayout
26             android:id="@+id/editorContainer"
27             android:layout_width="match_parent"
28             android:layout_height="0dp"
29             android:layout_weight="6"
30             android:layout_gravity="bottom">
31
32         <LinearLayout
33                 android:id="@+id/controls"
34                 android:layout_width="match_parent"
35                 android:layout_height="wrap_content"
36                 android:layout_gravity="bottom"
37                 android:orientation="vertical"
38                 android:visibility="visible">
39
40             <Button
41                     android:id="@+id/clearButton"
42                     android:layout_width="match_parent"
43                     android:layout_height="0dp"
44                     android:layout_weight="1"
45                     android:text="@string/draw_clear"/>
46
47             <GridLayout
48                     android:layout_width="match_parent"
49                     android:layout_height="0dp"
50                     android:layout_weight="1"
51                     android:columnCount="2"
52                     android:orientation="horizontal">
53
54                 <TextView
55                         android:id="@+id/controlName1"
56                         android:layout_gravity="left"
57                         android:layout_marginLeft="8dip"
58                         android:text="@string/draw_size"/>
59
60                 <TextView
61                         android:id="@+id/drawSizeValue"
62                         android:layout_gravity="right"
63                         android:layout_marginRight="8dip"
64                         android:textStyle="bold"/>
65
66                 <SeekBar
67                         android:id="@+id/drawSizeSeekBar"
68                         android:layout_width="match_parent"
69                         android:layout_column="0"
70                         android:layout_columnSpan="2"
71                         android:layout_gravity="fill_horizontal"
72                         style="@style/FilterShowSlider"/>
73             </GridLayout>
74
75             <HorizontalScrollView
76                     android:id="@+id/scrollList"
77                     android:layout_width="match_parent"
78                     android:layout_height="0dp"
79                     android:layout_weight="1"
80                     android:scrollbars="none">
81
82                 <LinearLayout
83                         android:id="@+id/listStyles"
84                         android:layout_width="wrap_content"
85                         android:layout_height="wrap_content"
86                         android:orientation="horizontal">
87
88                 </LinearLayout>
89             </HorizontalScrollView>
90
91         </LinearLayout>
92
93         <LinearLayout
94                 android:id="@+id/colorPicker"
95                 android:layout_width="match_parent"
96                 android:layout_height="match_parent"
97                 android:orientation="vertical"
98                 android:visibility="gone">
99
100             <TextView
101                     android:layout_width="wrap_content"
102                     android:layout_height="wrap_content"
103                     android:text="@string/draw_color"
104                     android:layout_marginLeft="8dip"
105                     android:id="@+id/textView"/>
106
107             <com.android.gallery3d.filtershow.colorpicker.ColorOpacityView
108                     android:id="@+id/colorOpacityView"
109                     android:layout_width="match_parent"
110                     android:layout_height="0dp"
111                     android:layout_weight="1"/>
112
113             <com.android.gallery3d.filtershow.colorpicker.ColorSVRectView
114                     android:id="@+id/colorRectView"
115                     android:layout_width="match_parent"
116                     android:layout_height="0dp"
117                     android:layout_weight="4"
118                     android:layout_marginRight="1dp"/>
119
120             <com.android.gallery3d.filtershow.colorpicker.ColorHueView
121                     android:id="@+id/ColorHueView"
122                     android:layout_width="match_parent"
123                     android:layout_height="0dp"
124                     android:layout_weight="1"/>
125
126         </LinearLayout>
127     </FrameLayout>
128
129     <LinearLayout
130             android:layout_width="match_parent"
131             android:layout_height="wrap_content"
132             android:orientation="horizontal"
133             android:layout_marginBottom="10dp"
134             android:layout_marginTop="10dp"
135             android:layout_marginLeft="1dp"
136             android:layout_marginRight="1dp">
137
138         <HorizontalScrollView
139                 android:id="@+id/scrollList"
140                 android:layout_width="0dp"
141                 android:layout_weight="5"
142                 android:layout_height="match_parent"
143                 android:scrollbars="none">
144
145             <LinearLayout
146                     android:id="@+id/listColors"
147                     android:layout_width="wrap_content"
148                     android:layout_height="wrap_content"
149                     android:orientation="horizontal">
150
151                 <Button
152                         android:id="@+id/draw_color_button01"
153                         android:layout_width="0dip"
154                         android:layout_height="wrap_content"
155                         android:layout_weight="1"
156                         android:background="@drawable/filtershow_color_picker_circle"
157                         android:layout_margin="2dp"/>
158
159                 <Button
160                         android:id="@+id/draw_color_button02"
161                         android:layout_width="0dip"
162                         android:layout_height="wrap_content"
163                         android:layout_weight="1"
164                         android:background="@drawable/filtershow_color_picker_circle"
165                         android:layout_margin="2dp"/>
166
167                 <Button
168                         android:id="@+id/draw_color_button03"
169                         android:layout_width="0dip"
170                         android:layout_height="wrap_content"
171                         android:layout_weight="1"
172                         android:background="@drawable/filtershow_color_picker_circle"
173                         android:layout_margin="2dp"/>
174
175                 <Button
176                         android:id="@+id/draw_color_button04"
177                         android:layout_width="0dip"
178                         android:layout_height="wrap_content"
179                         android:layout_weight="1"
180                         android:background="@drawable/filtershow_color_picker_circle"
181                         android:layout_margin="2dp"/>
182
183                 <Button
184                         android:id="@+id/draw_color_button05"
185                         android:layout_width="0dip"
186                         android:layout_height="wrap_content"
187                         android:layout_weight="1"
188                         android:background="@drawable/filtershow_color_picker_circle"
189                         android:layout_margin="2dp"/>
190
191             </LinearLayout>
192         </HorizontalScrollView>
193
194         <Button
195                 android:id="@+id/draw_color_popupbutton"
196                 android:layout_width="0dp"
197                 android:layout_height="match_parent"
198                 android:layout_weight="1"
199                 android:background="@android:drawable/ic_menu_more"
200                 android:layout_margin="1dp"/>
201     </LinearLayout>
202 </LinearLayout>