Home | History | Annotate | Download | only in layout
      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.ModePicker xmlns:android="http://schemas.android.com/apk/res/android"
     17             android:id="@+id/mode_picker"
     18             android:layout_height="match_parent"
     19             android:layout_width="wrap_content"
     20             android:layout_alignParentLeft="true"
     21             android:visibility="gone">
     22     <RelativeLayout android:id="@+id/current_mode"
     23             android:orientation="horizontal"
     24             android:layout_alignLeft="@+id/mode_selection"
     25             android:layout_height="match_parent"
     26             android:layout_width="55dp"
     27             android:contentDescription="@string/accessibility_mode_picker"
     28             android:background="@drawable/bg_mode_picker">
     29         <RelativeLayout
     30                 android:orientation="vertical"
     31                 android:contentDescription="@string/empty"
     32                 android:layout_height="match_parent"
     33                 android:layout_width="match_parent">
     34             <com.android.camera.ui.RotateImageView android:id="@+id/mode_0"
     35                     android:layout_height="32dp"
     36                     android:layout_width="32dp"
     37                     android:layout_centerHorizontal="true"
     38                     android:layout_alignParentTop="true"
     39                     android:layout_marginTop="8dp"
     40                     android:scaleType="fitCenter"
     41                     android:contentDescription="@string/empty"
     42                     android:src="@drawable/ic_switch_video_holo_light" />
     43             <com.android.camera.ui.RotateImageView android:id="@+id/mode_1"
     44                     android:layout_height="wrap_content"
     45                     android:layout_width="wrap_content"
     46                     android:layout_centerInParent="true"
     47                     android:scaleType="fitCenter"
     48                     android:contentDescription="@string/empty"
     49                     android:src="@drawable/ic_switch_camera_holo_light" />
     50             <com.android.camera.ui.RotateImageView android:id="@+id/mode_2"
     51                     android:layout_height="32dp"
     52                     android:layout_width="32dp"
     53                     android:layout_centerHorizontal="true"
     54                     android:layout_alignParentBottom="true"
     55                     android:layout_marginBottom="8dp"
     56                     android:scaleType="fitCenter"
     57                     android:contentDescription="@string/empty"
     58                     android:src="@drawable/ic_switch_pan_holo_light" />
     59         </RelativeLayout>
     60         <View android:layout_height="match_parent"
     61                 android:layout_width="1dp"
     62                 android:layout_alignParentRight="true"
     63                 android:background="@android:color/white"/>
     64     </RelativeLayout>
     65     <RelativeLayout android:id="@+id/mode_selection"
     66             android:orientation="horizontal"
     67             android:layout_height="match_parent"
     68             android:layout_width="198dp"
     69             android:background="@drawable/bg_switcher"
     70             android:visibility="gone">
     71         <LinearLayout
     72                 android:orientation="horizontal"
     73                 android:layout_height="match_parent"
     74                 android:layout_width="wrap_content"
     75                 android:layout_centerHorizontal="true">
     76             <com.android.camera.ui.RotateImageView android:id="@+id/mode_camera"
     77                     android:contentDescription="@string/switch_to_camera_label"
     78                     android:layout_height="match_parent"
     79                     android:layout_width="wrap_content"
     80                     android:layout_marginRight="10dp"
     81                     android:scaleType="center"
     82                     android:background="@drawable/bg_pressed"
     83                     android:src="@drawable/ic_switch_camera_holo_light" />
     84             <com.android.camera.ui.RotateImageView android:id="@+id/mode_video"
     85                     android:contentDescription="@string/switch_to_video_label"
     86                     android:layout_height="match_parent"
     87                     android:layout_width="wrap_content"
     88                     android:layout_marginRight="10dp"
     89                     android:scaleType="center"
     90                     android:background="@drawable/bg_pressed"
     91                     android:src="@drawable/ic_switch_video_holo_light" />
     92             <com.android.camera.ui.RotateImageView android:id="@+id/mode_panorama"
     93                     android:contentDescription="@string/switch_to_panorama_label"
     94                     android:layout_height="match_parent"
     95                     android:layout_width="wrap_content"
     96                     android:scaleType="center"
     97                     android:background="@drawable/bg_pressed"
     98                     android:src="@drawable/ic_switch_pan_holo_light" />
     99         </LinearLayout>
    100         <View android:layout_height="match_parent"
    101                 android:layout_width="1dp"
    102                 android:layout_alignParentRight="true"
    103                 android:background="@color/mode_selection_border"/>
    104     </RelativeLayout>
    105 </com.android.camera.ModePicker>
    106