1<!-- Copyright (C) 2015 The Android Open Source Project 2 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9 Unless required by applicable law or agreed to in writing, software 10 distributed under the License is distributed on an "AS IS" BASIS, 11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 See the License for the specific language governing permissions and 13 limitations under the License. 14--> 15<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 16 xmlns:tools="http://schemas.android.com/tools" 17 android:layout_width="match_parent" 18 android:layout_height="match_parent" 19 android:paddingLeft="@dimen/activity_horizontal_margin" 20 android:paddingRight="@dimen/activity_horizontal_margin" 21 android:paddingTop="@dimen/activity_vertical_margin" 22 android:orientation="horizontal" 23 android:paddingBottom="@dimen/activity_vertical_margin" 24 tools:context=".VrActivity"> 25 <view 26 android:layout_height="match_parent" 27 android:layout_width="0dp" 28 class="com.example.android.rs.vr.VrView" 29 android:id="@+id/view" 30 android:layout_weight="1"/> 31 32 <LinearLayout 33 android:layout_width="wrap_content" 34 android:layout_height="match_parent" 35 android:orientation="vertical"> 36 37 <TextView 38 android:id="@+id/title" 39 android:text="@string/volume_name" 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" 42 android:layout_weight="1.0" 43 android:gravity="center" /> 44 45 <LinearLayout 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:orientation="horizontal" 49 android:layout_weight="1.0" 50 > 51 52 <LinearLayout 53 android:layout_width="wrap_content" 54 android:layout_height="wrap_content" 55 android:orientation="vertical"> 56 57 <ToggleButton 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:textOn="@string/xcut" 61 android:textOff="@string/xcut" 62 android:onClick="cutXClick" /> 63 <ToggleButton 64 android:layout_width="wrap_content" 65 android:layout_height="wrap_content" 66 android:textOff="@string/ycut" 67 android:textOn="@string/ycut" 68 android:onClick="cutYClick" /> 69 <ToggleButton 70 android:layout_width="wrap_content" 71 android:layout_height="wrap_content" 72 android:textOn="@string/zcut" 73 android:textOff="@string/zcut" 74 android:onClick="cutZClick" /> 75 <ToggleButton 76 android:layout_width="wrap_content" 77 android:layout_height="wrap_content" 78 android:textOn="@string/rotate" 79 android:textOff="@string/rotate" 80 android:onClick="rotateClick"/> 81 </LinearLayout> 82 83 <LinearLayout 84 android:layout_width="wrap_content" 85 android:layout_height="wrap_content" 86 android:orientation="vertical"> 87 88 <Button 89 android:layout_width="wrap_content" 90 android:layout_height="wrap_content" 91 android:text="@string/looks" 92 android:onClick="looksClick"/> 93 94 <Button 95 android:layout_width="wrap_content" 96 android:layout_height="wrap_content" 97 android:text="@string/load" 98 android:onClick="dataClick"/> 99 <Button 100 android:layout_width="wrap_content" 101 android:layout_height="wrap_content" 102 android:text="@string/reset" 103 android:onClick="resetClick" /> 104 105 <Button 106 android:layout_width="wrap_content" 107 android:layout_height="wrap_content" 108 android:text="@string/save" 109 android:onClick="saveClick" /> 110 </LinearLayout> 111 </LinearLayout> 112 </LinearLayout> 113 </LinearLayout> 114