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="vertical" 23 android:paddingBottom="@dimen/activity_vertical_margin" 24 tools:context=".VrActivity"> 25 <view 26 android:layout_width="match_parent" 27 android:layout_height="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="match_parent" 34 android:layout_height="wrap_content" 35 android:orientation="vertical"> 36 <LinearLayout 37 android:layout_width="match_parent" 38 android:layout_height="wrap_content" 39 android:orientation="horizontal"> 40 41 <TextView 42 android:id="@+id/title" 43 android:text="@string/volume_name" 44 android:layout_width="0dp" 45 android:layout_height="match_parent" 46 android:layout_weight="1.0" 47 android:gravity="center" /> 48 </LinearLayout> 49 50 <LinearLayout 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:orientation="horizontal"> 54 55 <ToggleButton 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content" 58 android:textOn="@string/xcut" 59 android:textOff="@string/xcut" 60 android:onClick="cutXClick" /> 61 <ToggleButton 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:textOff="@string/ycut" 65 android:textOn="@string/ycut" 66 android:onClick="cutYClick" /> 67 <ToggleButton 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" 70 android:textOn="@string/zcut" 71 android:textOff="@string/zcut" 72 android:onClick="cutZClick" /> 73 <ToggleButton 74 android:layout_width="wrap_content" 75 android:layout_height="wrap_content" 76 android:textOn="@string/rotate" 77 android:textOff="@string/rotate" 78 android:onClick="rotateClick"/> 79 </LinearLayout> 80 81 <LinearLayout 82 android:layout_width="match_parent" 83 android:layout_height="wrap_content" 84 android:orientation="horizontal"> 85 86 <Button 87 android:layout_width="wrap_content" 88 android:layout_height="wrap_content" 89 android:text="@string/looks" 90 android:onClick="looksClick"/> 91 92 <Button 93 android:layout_width="wrap_content" 94 android:layout_height="wrap_content" 95 android:text="@string/load" 96 android:onClick="dataClick"/> 97 <Button 98 android:layout_width="wrap_content" 99 android:layout_height="wrap_content" 100 android:text="@string/reset" 101 android:onClick="resetClick" /> 102 103 <Button 104 android:layout_width="wrap_content" 105 android:layout_height="wrap_content" 106 android:text="@string/save" 107 android:onClick="saveClick" /> 108 </LinearLayout> 109 110 </LinearLayout> 111</LinearLayout> 112