1<?xml version="1.0" encoding="utf-8"?> 2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:app="http://schemas.android.com/apk/res-auto" 4 android:layout_width="match_parent" 5 android:layout_height="match_parent" 6 android:orientation="vertical"> 7 8 <androidx.appcompat.widget.Toolbar 9 android:id="@+id/main_tool_bar" 10 android:layout_width="match_parent" 11 android:layout_height="?attr/actionBarSize" 12 android:background="?attr/colorPrimary" 13 android:elevation="4dp" 14 android:theme="@style/ThemeOverlay.AppCompat.ActionBar" 15 app:popupTheme="@style/ThemeOverlay.AppCompat.Light" /> 16 17 <LinearLayout 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:orientation="vertical"> 21 22 <androidx.fragment.app.FragmentContainerView 23 android:id="@+id/connectivity_fragment_container" 24 android:name="com.example.android.vdmdemo.common.ConnectivityFragment" 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" /> 27 28 <LinearLayout 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:gravity="center_horizontal" 32 android:orientation="horizontal"> 33 34 <Button 35 android:id="@+id/create_home_display" 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:layout_gravity="center" 39 android:onClick="onCreateHomeDisplay" 40 android:text="@string/create_home_display" /> 41 42 <Button 43 android:id="@+id/create_mirror_display" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:layout_gravity="center" 47 android:onClick="onCreateMirrorDisplay" 48 android:text="@string/create_mirror_display" /> 49 </LinearLayout> 50 51 <include layout="@layout/custom_launcher" /> 52 53 </LinearLayout> 54 55</LinearLayout>