Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!-- Copyright (C) 2015 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 <LinearLayout
     18     android:orientation="horizontal"
     19     android:layout_height="match_parent"
     20     android:layout_width="match_parent"
     21     xmlns:tools="http://schemas.android.com/tools"
     22     xmlns:custom="http://schemas.android.com/apk/res-auto"
     23     xmlns:android="http://schemas.android.com/apk/res/android"
     24     android:id="@+id/panels">
     25 
     26     <com.android.example.rscamera.CameraView
     27         android:layout_height="wrap_content"
     28         android:layout_width="0dp"
     29         android:id="@+id/preview"
     30         custom:aspectRatio="1.333"
     31         android:layout_weight="4"
     32         android:layout_gravity="center_vertical" />
     33 
     34 
     35     <ViewFlipper
     36         android:layout_height="match_parent"
     37         android:layout_width="0px"
     38         android:id="@+id/viewFlipper"
     39         android:layout_weight="1">
     40 
     41         <LinearLayout
     42             android:orientation="vertical"
     43             android:layout_height="match_parent"
     44             android:layout_width="match_parent"
     45             android:id="@+id/control_bar_contents">
     46 
     47             <Button
     48                 android:layout_height="wrap_content"
     49                 android:layout_width="match_parent"
     50                 android:id="@+id/iso"
     51                 android:layout_gravity="center_horizontal"
     52                 android:onClick="setISO"
     53                 android:text="A ISO 1600" />
     54 
     55             <Button
     56                 android:layout_height="wrap_content"
     57                 android:layout_width="match_parent"
     58                 android:id="@+id/speed"
     59                 android:layout_gravity="center_horizontal"
     60                 android:onClick="setShutterSpeed"
     61                 android:text="A 1/30 s" />
     62 
     63             <Button
     64                 android:layout_height="wrap_content"
     65                 android:layout_width="match_parent"
     66                 android:id="@+id/focus"
     67                 android:layout_gravity="center_horizontal"
     68                 android:onClick="setFocus"
     69                 android:text="A 12.0m" />
     70 
     71             <ImageButton
     72                 android:layout_height="wrap_content"
     73                 android:layout_width="match_parent"
     74                 android:layout_gravity="center_horizontal"
     75                 android:onClick="capture"
     76                 android:src="@drawable/ic_cam" />
     77 
     78         </LinearLayout>
     79 
     80         <LinearLayout
     81             android:orientation="vertical"
     82             android:layout_height="match_parent"
     83             android:layout_width="match_parent"
     84             android:id="@+id/slide">
     85 
     86             <ImageButton
     87                 android:layout_height="wrap_content"
     88                 android:layout_width="match_parent"
     89                 android:id="@+id/back"
     90                 android:layout_gravity="center_horizontal"
     91                 android:onClick="back"
     92                 android:src="@drawable/ic_back"
     93                 />
     94 
     95             <ImageButton
     96                 android:layout_height="wrap_content"
     97                 android:layout_width="match_parent"
     98                 android:id="@+id/capture"
     99                 android:layout_gravity="center_horizontal"
    100                 android:onClick="capture"
    101                 android:src="@drawable/ic_cam" />
    102 
    103             <RelativeLayout
    104                 android:layout_height="match_parent"
    105                 android:layout_width="match_parent">
    106 
    107                 <com.android.example.rscamera.VerticalSeekBar
    108                     android:layout_height="match_parent"
    109                     android:layout_width="wrap_content"
    110                     android:id="@+id/focusbar"
    111                     android:layout_alignParentTop="true"
    112                     android:layout_centerInParent="true" />
    113 
    114             </RelativeLayout>
    115 
    116         </LinearLayout>
    117 
    118     </ViewFlipper>
    119 
    120 </LinearLayout>