effect_setting_popup.xml revision a2c8d40185095a1905f0063ebeb51ff62c0a0ab1
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<com.android.camera.ui.EffectSettingPopup xmlns:android="http://schemas.android.com/apk/res/android"
17        style="@style/SettingPopupWindow">
18
19    <LinearLayout android:orientation="vertical"
20        android:background="@color/popup_background"
21        android:layout_height="wrap_content"
22        android:layout_width="@dimen/big_setting_popup_window_width">
23
24        <FrameLayout
25                android:layout_width="match_parent"
26                android:layout_height="wrap_content"
27                android:minHeight="@dimen/popup_title_frame_min_height">
28            <TextView android:id="@+id/title"
29                    style="@style/PopupTitleText" />
30        </FrameLayout>
31
32        <View style="@style/PopupTitleSeperator" />
33        <ScrollView
34                android:layout_width="match_parent"
35                android:layout_height="wrap_content">
36            <LinearLayout
37                    android:orientation="vertical"
38                    android:layout_width="match_parent"
39                    android:layout_height="wrap_content">
40                <TextView android:id="@+id/clear_effects"
41                        android:text="@string/clear_effects"
42                        style="@style/EffectSettingTypeTitle"
43                        android:textSize="@dimen/effect_setting_clear_text_size"
44                        android:minHeight="@dimen/effect_setting_clear_text_min_height"
45                        android:background="@drawable/bg_pressed"/>
46
47                <TextView android:id="@+id/effect_silly_faces_title"
48                        android:text="@string/effect_silly_faces"
49                        android:visibility="gone"
50                        style="@style/EffectSettingTypeTitle"/>
51                <View android:id="@+id/effect_silly_faces_title_separator"
52                        android:visibility="gone"
53                        style="@style/EffectTypeSeparator"/>
54                <com.android.camera.ui.ExpandedGridView android:id="@+id/effect_silly_faces"
55                        style="@style/EffectSettingGrid"/>
56
57                <View android:id="@+id/effect_background_separator"
58                        android:visibility="gone"
59                        style="@style/EffectTitleSeparator"/>
60
61                <TextView android:id="@+id/effect_background_title"
62                        android:text="@string/effect_background"
63                        android:visibility="gone"
64                        style="@style/EffectSettingTypeTitle"/>
65                <View android:id="@+id/effect_background_title_separator"
66                        android:visibility="gone"
67                        style="@style/EffectTypeSeparator"/>
68                <com.android.camera.ui.ExpandedGridView android:id="@+id/effect_background"
69                        android:visibility="gone"
70                        style="@style/EffectSettingGrid"/>
71            </LinearLayout>
72        </ScrollView>
73    </LinearLayout>
74</com.android.camera.ui.EffectSettingPopup>
75