OSDN Git Service

Add quality selector to export.
[android-x86/packages-apps-Gallery2.git] / res / layout / filtershow_export_dialog.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:orientation="vertical"
20               android:layout_width="match_parent"
21               android:layout_height="wrap_content"
22               android:divider="?android:dividerVertical"
23               android:showDividers="middle">
24
25     <TextView
26         android:layout_width="wrap_content"
27         android:layout_height="wrap_content"
28         android:layout_gravity="center_horizontal|center_vertical"
29         android:layout_margin="7dp"
30         android:text="@string/select_compression"/>
31
32     <LinearLayout
33             android:orientation="horizontal"
34             android:layout_width="match_parent"
35             android:layout_height="wrap_content">
36
37         <SeekBar
38                 android:id="@+id/qualitySeekBar"
39                 android:layout_width="0dp"
40                 android:layout_height="wrap_content"
41                 android:layout_weight="3"
42                 android:layout_margin="7dp"
43                 android:max="100"
44                 android:progress="100"/>
45
46         <TextView
47                 android:id="@+id/qualityTextView"
48                 android:layout_width="0dp"
49                 android:layout_height="wrap_content"
50                 android:layout_weight="1"
51                 android:layout_marginLeft="7dp"
52                 android:layout_gravity="center_vertical|center_horizontal"/>
53
54     </LinearLayout>
55
56     <LinearLayout
57             android:orientation="horizontal"
58             android:layout_width="match_parent"
59             android:layout_height="48dp"
60             style="?android:attr/buttonBarStyle">
61
62         <Button
63                 android:id="@+id/cancel"
64                 android:layout_width="0dp"
65                 android:layout_height="match_parent"
66                 android:layout_weight="1"
67                 android:text="@string/cancel"
68                 style="?android:attr/buttonBarButtonStyle" />
69
70         <Button
71                 android:id="@+id/done"
72                 android:layout_width="0dp"
73                 android:layout_height="match_parent"
74                 android:layout_weight="1"
75                 android:text="@string/done"
76                 style="?android:attr/buttonBarButtonStyle"/>
77
78     </LinearLayout>
79
80 </LinearLayout>