OSDN Git Service

am 6f3b8be5: am 6cc7a476: Merge "UI changes" into gb-ub-photos-bryce
[android-x86/packages-apps-Gallery2.git] / res / layout / filtershow_editor_panel.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="wrap_content"
22     android:orientation="vertical"
23     android:visibility="visible" >
24
25     <LinearLayout
26         android:layout_width="match_parent"
27         android:layout_height="wrap_content"
28         android:orientation="vertical">
29
30         <LinearLayout
31                 android:id="@+id/controlArea"
32                 android:layout_width="match_parent"
33                 android:layout_height="wrap_content"
34                 android:orientation="horizontal"
35                 android:layout_alignParentBottom="true"
36                 android:visibility="visible">
37
38             <SeekBar
39                     android:id="@+id/primarySeekBar"
40                     android:layout_width="match_parent"
41                     android:layout_height="wrap_content"
42                     android:layout_gravity="center_vertical"
43                     style="@style/FilterShowSlider"/>
44
45         </LinearLayout>
46
47         <LinearLayout
48                 android:layout_width="match_parent"
49                 android:layout_height="56dip"
50                 android:background="@color/background_main_toolbar"
51                 android:orientation="horizontal"
52                 android:baselineAligned="false"
53                 android:visibility="visible">
54
55             <ImageButton
56                     android:id="@+id/cancelFilter"
57                     android:layout_width="wrap_content"
58                     android:layout_height="fill_parent"
59                     android:layout_gravity="left|center_vertical"
60                     android:background="@android:color/transparent"
61                     android:layout_weight=".1"
62                     android:gravity="center"
63                     android:src="@drawable/ic_menu_cancel_holo_light"
64                     android:textSize="18dip"/>
65
66             <ImageView
67                     android:layout_width="2dp"
68                     android:layout_height="fill_parent"
69                     android:src="@drawable/filtershow_vertical_bar"/>
70
71             <LinearLayout
72                     android:id="@+id/panelAccessoryViewList"
73                     android:layout_width="wrap_content"
74                     android:layout_height="match_parent"
75                     android:layout_weight="1"
76                     android:orientation="horizontal"
77                     android:visibility="visible">
78
79                 <com.android.gallery3d.filtershow.editors.SwapButton
80                         android:id="@+id/applyEffect"
81                         android:layout_width="fill_parent"
82                         android:layout_height="fill_parent"
83                         android:layout_gravity="center"
84                         android:background="@android:color/transparent"
85                         android:gravity="center"
86                         android:text="@string/apply_effect"
87                         android:textSize="18dip"
88                         android:drawableRight="@drawable/filtershow_menu_marker"/>
89
90             </LinearLayout>
91
92             <ImageView
93                     android:layout_width="2dp"
94                     android:layout_height="fill_parent"
95                     android:src="@drawable/filtershow_vertical_bar"/>
96
97             <ImageButton
98                     android:id="@+id/applyFilter"
99                     android:layout_width="wrap_content"
100                     android:layout_height="fill_parent"
101                     android:layout_gravity="right|center_vertical"
102                     android:layout_weight=".1"
103                     android:background="@android:color/transparent"
104                     android:gravity="center"
105                     android:src="@drawable/ic_menu_done_holo_light"
106                     android:textSize="18dip"/>
107         </LinearLayout>
108
109         <FrameLayout android:id="@+id/state_panel_container"
110                      android:layout_width="match_parent"
111                      android:layout_height="wrap_content"
112                      android:visibility="visible"
113                      android:layout_gravity="top"
114                      android:layout_weight="1" />
115
116     </LinearLayout>
117
118 </LinearLayout>