1<?xml version="1.0" encoding="utf-8"?> 2 3<LinearLayout 4 xmlns:android="http://schemas.android.com/apk/res/android" 5 android:orientation="horizontal" 6 android:layout_width="match_parent" 7 android:background="@android:color/darker_gray" 8 android:layout_height="match_parent"> 9 10 <!-- The navigation drawer that's always open --> 11 <ListView android:id="@+id/leftDrawer" 12 android:layout_width="240dp" 13 android:layout_height="match_parent" 14 android:layout_gravity="start" 15 android:choiceMode="singleChoice" 16 android:divider="@android:color/transparent" 17 android:dividerHeight="0dp" 18 android:layout_marginRight="5dp" 19 android:background="@android:color/background_light"/> 20 21 <!-- The main content view --> 22 <RelativeLayout 23 android:layout_width="match_parent" 24 android:layout_height="match_parent"> 25 26 <!-- We use mainLayout for recreating SurfaceView --> 27 <LinearLayout 28 android:id="@+id/mainLayout" 29 android:layout_width="match_parent" 30 android:layout_height="match_parent"> 31 <SurfaceView 32 android:id="@+id/surfaceView" 33 android:layout_width="match_parent" 34 android:layout_height="match_parent" 35 android:layout_centerVertical="true" 36 android:layout_centerHorizontal="true" /> 37 </LinearLayout> 38 </RelativeLayout> 39 40</LinearLayout> 41 42