1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2022 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:orientation="vertical" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 22 <LinearLayout 23 android:layout_width="match_parent" 24 android:layout_height="wrap_content" 25 android:orientation="horizontal"> 26 27 <TextView 28 android:layout_width="wrap_content" 29 android:layout_height="wrap_content" 30 android:textSize="30sp" 31 android:text="User ID: "/> 32 <Spinner 33 android:id="@+id/user_spinner" 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:textSize="30sp"/> 37 <TextView 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:textSize="30sp" 41 android:text="Allow Driver to control media:"/> 42 <CheckBox 43 android:id="@+id/allow_driver_checkbox" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content"/> 46 47 </LinearLayout> 48 49 <LinearLayout 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:orientation="horizontal"> 53 54 <TextView 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" 57 android:textSize="30sp" 58 android:text="Choose Video: "/> 59 60 <Spinner 61 android:id="@+id/video_spinner" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:textSize="30sp"/> 65 66 <Button 67 android:id="@+id/start" 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" 70 android:layout_margin="10dp" 71 android:text="Start" 72 android:textSize="30sp"/> 73 74 </LinearLayout> 75 76 <TextView 77 android:id="@+id/now_playing" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:textSize="30sp" 81 android:text="Now playing: "/> 82 83 <LinearLayout 84 android:layout_width="match_parent" 85 android:layout_height="wrap_content" 86 android:orientation="horizontal"> 87 88 <Button 89 android:id="@+id/previous" 90 android:layout_width="wrap_content" 91 android:layout_height="wrap_content" 92 android:layout_margin="10dp" 93 android:text="Prev" 94 android:textSize="30sp"/> 95 96 <Button 97 android:id="@+id/pause_resume" 98 android:layout_width="wrap_content" 99 android:layout_height="wrap_content" 100 android:layout_margin="10dp" 101 android:text="Pause" 102 android:textSize="30sp"/> 103 104 <Button 105 android:id="@+id/next" 106 android:layout_width="wrap_content" 107 android:layout_height="wrap_content" 108 android:layout_margin="10dp" 109 android:text="Next" 110 android:textSize="30sp"/> 111 112 </LinearLayout> 113</LinearLayout>