Home | History | Annotate | Download | only in layout
      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 <com.android.photoeditor.Toolbar
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:id="@+id/toolbar"
     20     android:layout_width="fill_parent"
     21     android:layout_height="fill_parent">
     22 
     23     <com.android.photoeditor.PhotoView
     24         android:id="@+id/photo_view"
     25         android:layout_width="fill_parent"
     26         android:layout_height="fill_parent"/>
     27 
     28     <com.android.photoeditor.actions.TouchView
     29         android:id="@+id/touch_view"
     30         style="@style/FullscreenToolView"/>
     31     <com.android.photoeditor.actions.DoodleView
     32         android:id="@+id/doodle_view"
     33         style="@style/FullscreenToolView"/>
     34     <com.android.photoeditor.actions.RotateView
     35         android:id="@+id/rotate_view"
     36         style="@style/FullscreenToolView"/>
     37     <com.android.photoeditor.actions.CropView
     38         android:id="@+id/crop_view"
     39         style="@style/FullscreenToolView"/>
     40     <com.android.photoeditor.actions.ScaleWheel
     41         android:id="@+id/scale_wheel"
     42         android:tag="fadeOnIdle"
     43         style="@style/Wheel"/>
     44     <com.android.photoeditor.actions.ColorWheel
     45         android:id="@+id/color_wheel"
     46         android:tag="fadeOnIdle"
     47         style="@style/Wheel"/>
     48 
     49     <com.android.photoeditor.EffectsBar
     50         android:id="@+id/effects_bar"
     51         android:layout_below="@+id/action_bar"
     52         style="@style/EffectsBar">
     53 
     54         <LinearLayout
     55             android:id="@+id/effects_container"
     56             style="@style/EffectsBarLinearLayout">
     57 
     58             <include layout="@layout/exposure_effects"/>
     59             <include layout="@layout/fix_effects"/>
     60             <include layout="@layout/artistic_effects"/>
     61             <include layout="@layout/color_effects"/>
     62         </LinearLayout>
     63     </com.android.photoeditor.EffectsBar>
     64 
     65     <com.android.photoeditor.ActionBar
     66         android:id="@+id/action_bar"
     67         android:tag="fadeOnIdle"
     68         style="@style/ActionBar">
     69 
     70         <RelativeLayout style="@style/ActionBarTranslucent">
     71             <LinearLayout style="@style/ActionBarLinearLayout">
     72 
     73                 <LinearLayout
     74                     android:id="@+id/action_bar_back"
     75                     style="@style/ActionBarBackLinearLayout">
     76                     <ImageView style="@style/ActionBarArrow"/>
     77                     <ImageView style="@style/ActionBarIcon"/>
     78                 </LinearLayout>
     79 
     80                 <TextView android:id="@+id/action_effect_name" style="@style/ActionBarText"/>
     81             </LinearLayout>
     82 
     83             <LinearLayout
     84                 style="@style/ActionBarLinearLayout"
     85                 android:layout_alignParentRight="true">
     86 
     87                 <ImageButton
     88                     android:id="@+id/save_button"
     89                     style="@style/ActionButton"
     90                     android:src="@drawable/saveas"/>
     91                 <ImageButton
     92                     android:id="@+id/undo_button"
     93                     style="@style/ActionButton"
     94                     android:src="@drawable/undo"/>
     95                 <ImageButton
     96                     android:id="@+id/redo_button"
     97                     style="@style/ActionButton"
     98                     android:src="@drawable/redo"/>
     99                 <ImageButton
    100                     android:id="@+id/quickview_button"
    101                     style="@style/RightmostActionButton"
    102                     android:src="@drawable/quickview"/>
    103             </LinearLayout>
    104         </RelativeLayout>
    105 
    106         <ImageButton
    107             android:id="@+id/quickview_on_button"
    108             style="@style/RightmostActionButton"
    109             android:layout_gravity="center_vertical|right"
    110             android:src="@drawable/quickview_on"/>
    111 
    112     </com.android.photoeditor.ActionBar>
    113 </com.android.photoeditor.Toolbar>
    114