1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2017 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 android:gravity="center" 18 android:layout_height="match_parent" 19 android:layout_width="match_parent" 20 android:orientation="vertical"> 21 22 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 23 android:layout_height="wrap_content" 24 android:layout_width="match_parent" 25 android:orientation="horizontal"> 26 <Button 27 android:clickable="true" 28 android:id="@+id/btnPwrShutdown" 29 android:layout_height="@dimen/powerBtnHeight" 30 android:layout_width ="@dimen/powerBtnWidth" 31 android:text="@string/power_shutdown" 32 android:textSize="@dimen/powerTextSize"/> 33 34 <Button 35 android:clickable="true" 36 android:id="@+id/btnPwrSleep" 37 android:layout_height="@dimen/powerBtnHeight" 38 android:layout_width ="@dimen/powerBtnWidth" 39 android:text="@string/power_sleep" 40 android:textSize="@dimen/powerTextSize"/> 41 </LinearLayout> 42 43 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 44 android:layout_height="wrap_content" 45 android:layout_width="match_parent" 46 android:orientation="horizontal"> 47 48 <Button 49 android:clickable="true" 50 android:id="@+id/btnPwrRequestShutdown" 51 android:layout_height="@dimen/powerBtnHeight" 52 android:layout_width ="@dimen/powerBtnWidth" 53 android:text="@string/power_request_shutdown" 54 android:textSize="@dimen/powerTextSize"/> 55 </LinearLayout> 56 57 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 58 android:layout_height="wrap_content" 59 android:layout_width="match_parent" 60 android:orientation="horizontal"> 61 62 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 63 android:layout_height="wrap_content" 64 android:layout_width="wrap_content" 65 android:orientation="vertical"> 66 67 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 68 android:layout_height="wrap_content" 69 android:layout_width="match_parent" 70 android:orientation="horizontal"> 71 72 <TextView 73 android:layout_height="@dimen/powerBtnHeight" 74 android:layout_width="@dimen/wrap_content" 75 android:text="Display ID"/> 76 77 <Spinner 78 android:id="@+id/display_spinner" 79 android:layout_height="100dp" 80 android:layout_width="@dimen/powerBtnHeight" 81 android:text="Select display"/> 82 </LinearLayout> 83 84 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 85 android:layout_height="wrap_content" 86 android:layout_width="match_parent" 87 android:orientation="horizontal"> 88 89 <Button 90 android:clickable="true" 91 android:id="@+id/btnDisplayOn" 92 android:layout_height="@dimen/powerBtnHeight" 93 android:layout_width ="@dimen/powerBtnWidth" 94 android:text="@string/power_display_on" 95 android:textSize="@dimen/powerTextSize"/> 96 97 <Button 98 android:clickable="true" 99 android:id="@+id/btnDisplayOff" 100 android:layout_height="@dimen/powerBtnHeight" 101 android:layout_width ="@dimen/powerBtnWidth" 102 android:text="@string/power_display_off" 103 android:textSize="@dimen/powerTextSize"/> 104 </LinearLayout> 105 </LinearLayout> 106 107 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 108 android:layout_height="wrap_content" 109 android:layout_width="wrap_content" 110 android:orientation="vertical"> 111 112 <TextView 113 android:layout_height="@dimen/wrap_content" 114 android:layout_width="@dimen/wrap_content" 115 android:text="@string/power_display_mode" 116 android:textSize="@dimen/powerTextSize"/> 117 118 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 119 android:id="@+id/power_mode_layout" 120 android:layout_height="wrap_content" 121 android:layout_width="wrap_content" 122 android:orientation="horizontal"> 123 </LinearLayout> 124 </LinearLayout> 125 </LinearLayout> 126</LinearLayout> 127