OSDN Git Service

Fix export dialog (size 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_output_settings"/>
31
32     <GridLayout
33         android:orientation="horizontal"
34         android:layout_width="match_parent"
35         android:layout_height="wrap_content"
36         android:alignmentMode="alignBounds"
37         android:useDefaultMargins="true"
38         android:columnOrderPreserved="false"
39         android:columnCount="5">
40
41         <TextView
42                 android:text="@string/size"
43                 android:layout_gravity="right|center_vertical"/>
44
45         <EditText
46                 android:id="@+id/editableWidth"
47                 android:layout_gravity="right|center_vertical"
48                 android:layout_width="100dp"
49                 android:inputType="number"/>
50
51         <TextView
52                 android:text="@string/x"
53                 android:layout_gravity="center"/>
54
55         <EditText
56                 android:id="@+id/editableHeight"
57                 android:layout_gravity="left|center_vertical"
58                 android:layout_width="100dp"
59                 android:inputType="number"/>
60
61         <TextView
62                 android:id="@+id/estimadedSize"
63                 android:layout_gravity="center"/>
64
65         <TextView
66                 android:text="@string/quality"
67                 android:layout_margin="7dp"
68                 android:layout_gravity="right|center_vertical" />
69
70         <SeekBar
71                 android:id="@+id/qualitySeekBar"
72                 android:layout_margin="7dp"
73                 android:layout_gravity="center"
74                 android:max="100"
75                 android:progress="100"
76                 android:layout_width="400dp"
77                 android:layout_columnSpan="3"/>
78
79         <TextView
80                 android:id="@+id/qualityTextView"
81                 android:layout_margin="7dp"
82                 android:layout_gravity="left|center_vertical"/>
83
84     </GridLayout>
85
86     <LinearLayout
87             android:orientation="horizontal"
88             android:layout_width="match_parent"
89             android:layout_height="48dp"
90             style="?android:attr/buttonBarStyle">
91
92         <Button
93                 android:id="@+id/cancel"
94                 android:layout_width="0dp"
95                 android:layout_height="match_parent"
96                 android:layout_weight="1"
97                 android:text="@string/cancel"
98                 style="?android:attr/buttonBarButtonStyle" />
99
100         <Button
101                 android:id="@+id/done"
102                 android:layout_width="0dp"
103                 android:layout_height="match_parent"
104                 android:layout_weight="1"
105                 android:text="@string/done"
106                 style="?android:attr/buttonBarButtonStyle"/>
107
108     </LinearLayout>
109
110 </LinearLayout>