Files
android_development/samples/MultiWindow/res/layout/launching_adjacent_layout.xml
Andrii Kulian e5d940bda0 Fix new task starting in samples
Added correct intent action and category. Added separate case to
show the behavior with and without FLAG_ACTIVITY_MULTIPLE_TASK.

Bug: 28848683
Change-Id: I4ba3908b7331e6d4c5f2d78c0a861e00487fcae4
2016-06-02 11:56:37 -07:00

49 lines
2.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2015 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/instance_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/instance_number"
android:textAppearance="?android:attr/textAppearanceLarge"/>
<Button
android:id="@+id/launch_settings_adjacent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/launch_settings_adjacent" />
<Button
android:id="@+id/launch_new_task_single"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/launch_new_task_single" />
<Button
android:id="@+id/launch_new_task_multiple"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/launch_new_task_multiple" />
<Button
android:id="@+id/launch_new_task_adjacent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/launch_new_task_adjacent" />
</LinearLayout>