OSDN Git Service

am cc2f8c4e: Merge "Fix 5543077: Gallery UI tweaks." into ics-mr1
[android-x86/packages-apps-Gallery2.git] / res / layout / photoeditor_actionbar.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2010 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
17 <RelativeLayout
18     xmlns:android="http://schemas.android.com/apk/res/android"
19     style="@style/ActionBarInner"
20     android:background="@drawable/photoeditor_actionbar_translucent">
21
22     <LinearLayout style="@style/ActionBarLinearLayout">
23
24         <LinearLayout
25             android:id="@+id/action_bar_back"
26             style="@style/ActionBarBackLinearLayout">
27             <ImageView style="@style/ActionBarArrow"/>
28             <ImageView style="@style/ActionBarIcon"/>
29         </LinearLayout>
30
31         <TextView
32             android:id="@+id/action_bar_title"
33             style="@style/ActionBarTitle"
34             android:text="@string/edit"/>
35     </LinearLayout>
36
37     <LinearLayout style="@style/ActionBarLinearLayout" android:layout_alignParentRight="true">
38
39         <ImageButton
40             android:id="@+id/undo_button"
41             style="@style/ImageActionButton"
42             android:src="@drawable/photoeditor_undo"/>
43         <ImageButton
44             android:id="@+id/redo_button"
45             style="@style/ImageActionButton"
46             android:src="@drawable/photoeditor_redo"/>
47
48         <ViewSwitcher
49             android:id="@+id/save_share_buttons"
50             android:layout_width="wrap_content"
51             android:layout_height="fill_parent">
52             <Button
53                 android:id="@+id/save_button"
54                 style="@style/TextActionButton"
55                 android:layout_width="fill_parent"
56                 android:text="@string/save"/>
57             <ImageButton
58                 android:id="@+id/share_button"
59                 style="@style/ImageActionButton"
60                 android:layout_width="fill_parent"
61                 android:src="@drawable/ic_menu_share_holo_light"/>
62         </ViewSwitcher>
63
64     </LinearLayout>
65 </RelativeLayout>