1 <?xml version="1.0" encoding="utf-8"?> 2 3 <!-- 4 Copyright (C) 2016 The Android Open Source Project 5 6 Licensed under the Apache License, Version 2.0 (the "License"); 7 you may not use this file except in compliance with the License. 8 You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, software 13 distributed under the License is distributed on an "AS IS" BASIS, 14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 See the License for the specific language governing permissions and 16 limitations under the License. 17 --> 18 19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 20 android:layout_height="match_parent" 21 android:layout_width="match_parent" 22 android:orientation="vertical" 23 android:background="@color/lightgray"> 24 25 <ScrollView xmlns:tools="http://schemas.android.com/tools" 26 android:layout_width="match_parent" 27 android:layout_height="0dp" 28 android:layout_weight="0.75" 29 android:background="@color/white" 30 android:layout_gravity="top" 31 android:id="@+id/scrollview" 32 tools:context="com.android.multiwindowplayground.MainActivity"> 33 34 <LinearLayout 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:paddingBottom="@dimen/activity_vertical_margin" 38 android:paddingLeft="@dimen/activity_horizontal_margin" 39 android:paddingRight="@dimen/activity_horizontal_margin" 40 android:paddingTop="@dimen/activity_vertical_margin" 41 android:orientation="vertical"> 42 43 <TextView 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:text="@string/introduction_title" 47 android:textSize="30sp" /> 48 49 <TextView 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:id="@+id/warning_multiwindow_disabled" 53 android:visibility="gone" 54 tools:visibility="visible" 55 style="@style/TextWarning" 56 android:paddingTop="@dimen/content_vertical_dividing_padding" 57 android:paddingBottom="@dimen/content_vertical_dividing_padding" 58 android:text="Enable multi-window mode to see this sample in action!" /> 59 60 <TextView 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:id="@+id/description" 64 android:text="@string/sample_introduction" /> 65 66 <Button 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:id="@+id/button_start_basic" 70 android:onClick="onStartBasicActivity" 71 android:text="@string/start_default" /> 72 73 <Button 74 android:layout_width="wrap_content" 75 android:layout_height="wrap_content" 76 android:id="@+id/start_unresizable" 77 android:onClick="onStartUnresizableClick" 78 android:text="@string/start_unresizable" /> 79 80 <Button 81 android:layout_width="wrap_content" 82 android:layout_height="wrap_content" 83 android:id="@+id/start_adjacent" 84 android:onClick="onStartAdjacentActivity" 85 android:text="@string/start_adjacent" /> 86 87 <Button 88 android:layout_width="wrap_content" 89 android:layout_height="wrap_content" 90 android:id="@+id/start_customconfiguration" 91 android:onClick="onStartCustomConfigurationActivity" 92 android:text="@string/start_custom_activity" /> 93 94 <TextView 95 android:layout_width="wrap_content" 96 android:layout_height="wrap_content" 97 android:paddingTop="@dimen/content_vertical_dividing_padding" 98 android:text="@string/sample_freeform_introduction" /> 99 100 <Button 101 android:layout_width="wrap_content" 102 android:layout_height="wrap_content" 103 android:id="@+id/start_minimumsize" 104 android:onClick="onStartMinimumSizeActivity" 105 android:text="@string/start_minimum" /> 106 107 <Button 108 android:layout_width="wrap_content" 109 android:layout_height="wrap_content" 110 android:id="@+id/start_launchbounds" 111 android:onClick="onStartLaunchBoundsActivity" 112 android:text="@string/start_bounds" /> 113 114 </LinearLayout> 115 </ScrollView> 116 117 <include 118 layout="@layout/logging" 119 android:layout_width="match_parent" 120 android:layout_height="0dp" 121 android:layout_gravity="bottom" 122 android:layout_weight="0.25" /> 123 124 </LinearLayout>