OSDN Git Service

[automerger skipped] DO NOT MERGE - Merge PPRL.190205.001 into master am: 446d81552c...
[android-x86/packages-apps-Gallery2.git] / res / layout-land / 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="match_parent"
22               android:orientation="vertical"
23               android:visibility="visible">
24
25     <RelativeLayout
26             android:layout_width="match_parent"
27             android:layout_height="match_parent"
28             >
29
30         <Button
31                 android:id="@+id/toggle_state"
32                 android:layout_width="match_parent"
33                 android:layout_height="wrap_content"
34                 android:text="@string/imageState"
35                 android:background="@color/background_main_toolbar"
36                 android:layout_alignParentTop="true"
37                 />
38
39         <View
40                 android:id="@+id/bottomControlLineBottom"
41                 android:background="@color/toolbar_separation_line"
42                 android:layout_height="1dip"
43                 android:layout_width="match_parent"
44                 android:layout_alignParentBottom="true"
45                 />
46         <LinearLayout
47                 android:id="@+id/applyBar"
48                 android:layout_width="match_parent"
49                 android:layout_height="48dip"
50                 android:background="@color/background_main_toolbar"
51                 android:orientation="horizontal"
52                 android:baselineAligned="false"
53                 android:visibility="visible"
54                 android:layout_above="@id/bottomControlLineBottom"
55                 >
56
57             <ImageButton
58                     android:id="@+id/cancelFilter"
59                     android:layout_width="wrap_content"
60                     android:layout_height="fill_parent"
61                     android:layout_gravity="left|center_vertical"
62                     android:background="@android:color/transparent"
63                     android:layout_weight=".1"
64                     android:gravity="center"
65                     android:src="@drawable/ic_menu_cancel_holo_light"
66                     android:textSize="18dip"/>
67
68             <ImageView
69                     android:layout_width="2dp"
70                     android:layout_height="fill_parent"
71                     android:src="@drawable/filtershow_vertical_bar"/>
72
73             <LinearLayout
74                     android:id="@+id/panelAccessoryViewList"
75                     android:layout_width="wrap_content"
76                     android:layout_height="match_parent"
77                     android:layout_weight="1"
78                     android:orientation="horizontal"
79                     android:visibility="visible">
80
81                 <com.android.gallery3d.filtershow.editors.SwapButton
82                         android:id="@+id/applyEffect"
83                         android:layout_width="fill_parent"
84                         android:layout_height="fill_parent"
85                         android:layout_gravity="center"
86                         android:background="@android:color/transparent"
87                         android:text="@string/apply_effect"
88                         android:textSize="18dip"
89                         android:drawableEnd="@drawable/filtershow_menu_marker_rtl"
90                         android:textAllCaps="true"/>
91
92             </LinearLayout>
93
94             <ImageView
95                     android:layout_width="2dp"
96                     android:layout_height="fill_parent"
97                     android:src="@drawable/filtershow_vertical_bar"/>
98
99             <ImageButton
100                     android:id="@+id/applyFilter"
101                     android:layout_width="wrap_content"
102                     android:layout_height="fill_parent"
103                     android:layout_gravity="right|center_vertical"
104                     android:layout_weight=".1"
105                     android:background="@android:color/transparent"
106                     android:gravity="center"
107                     android:src="@drawable/ic_menu_done_holo_light"
108                     android:textSize="18dip"/>
109         </LinearLayout>
110         <View
111                 android:id="@+id/bottomControlLineTop"
112                 android:background="@color/toolbar_separation_line"
113                 android:layout_height="1dip"
114                 android:layout_width="match_parent"
115                 android:layout_above="@id/applyBar"
116                 />
117
118         <LinearLayout
119                 android:id="@+id/controlArea"
120                 android:layout_width="match_parent"
121                 android:layout_height="fill_parent"
122                 android:orientation="vertical"
123                 android:layout_above="@id/bottomControlLineTop"
124                 android:layout_below="@id/toggle_state"
125                 android:gravity="bottom"
126                 android:visibility="visible">
127
128             <SeekBar
129                     android:id="@+id/primarySeekBar"
130                     android:layout_width="match_parent"
131                     android:layout_height="wrap_content"
132                     android:layout_gravity="center_vertical"
133                     style="@style/FilterShowSlider"
134                     android:visibility="gone"/>
135
136         </LinearLayout>
137
138     </RelativeLayout>
139 </LinearLayout>