diff options
author | Winson Chung <winsonc@google.com> | 2015-01-26 16:11:07 -0800 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2015-01-29 15:56:58 -0800 |
commit | d16c565a607de754379fe699a4def21bd0e3de2f (patch) | |
tree | f7267b6f364cca8e206a95a92a59f62830cdfb1c /packages/SystemUI/res/layout | |
parent | 3d62078498e8e9f7552d49f5f5e53ec339f4c2ce (diff) | |
download | frameworks_base-d16c565a607de754379fe699a4def21bd0e3de2f.zip frameworks_base-d16c565a607de754379fe699a4def21bd0e3de2f.tar.gz frameworks_base-d16c565a607de754379fe699a4def21bd0e3de2f.tar.bz2 |
Adding some debug controls to test multi-window.
Adding some preliminary controls to mirror the currently exposed api
to create new activity stacks, resize stacks, and to move tasks
between stacks.
Change-Id: I3fb51c248f53a1d4c4eb23ca9fb3a76888def1de
Diffstat (limited to 'packages/SystemUI/res/layout')
4 files changed, 136 insertions, 3 deletions
diff --git a/packages/SystemUI/res/layout/recents.xml b/packages/SystemUI/res/layout/recents.xml index 8f367a6..26523f9 100644 --- a/packages/SystemUI/res/layout/recents.xml +++ b/packages/SystemUI/res/layout/recents.xml @@ -15,7 +15,7 @@ --> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" + android:layout_width="match_parent" android:layout_height="match_parent"> <!-- Status Bar Scrim View --> <ImageView @@ -29,9 +29,16 @@ <!-- Recents View --> <com.android.systemui.recents.views.RecentsView android:id="@+id/recents_view" - android:layout_width="match_parent" + android:layout_width="match_parent" android:layout_height="match_parent" - android:focusable="true" /> + android:focusable="true"> + <!-- MultiStack Debug View --> + <ViewStub android:id="@+id/multistack_debug_view_stub" + android:layout="@layout/recents_multistack_debug" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left|bottom" /> + </com.android.systemui.recents.views.RecentsView> <!-- Empty View --> <ViewStub android:id="@+id/empty_view_stub" diff --git a/packages/SystemUI/res/layout/recents_multistack_debug.xml b/packages/SystemUI/res/layout/recents_multistack_debug.xml new file mode 100644 index 0000000..6524a54 --- /dev/null +++ b/packages/SystemUI/res/layout/recents_multistack_debug.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 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="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left|bottom" + android:orientation="vertical"> + <Button + android:id="@+id/add_stack" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center" + android:padding="8dp" + android:textSize="20sp" + android:textColor="#ffffffff" + android:text="@string/recents_multistack_add_stack" + android:fontFamily="sans-serif" + android:background="#000000" + android:alpha="0.5" /> + <Button + android:id="@+id/resize_stack" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center" + android:padding="8dp" + android:textSize="20sp" + android:textColor="#ffffffff" + android:text="@string/recents_multistack_resize_stack" + android:fontFamily="sans-serif" + android:background="#000000" + android:alpha="0.5" /> +</LinearLayout>
\ No newline at end of file diff --git a/packages/SystemUI/res/layout/recents_multistack_stack_size_dialog.xml b/packages/SystemUI/res/layout/recents_multistack_stack_size_dialog.xml new file mode 100644 index 0000000..36e54a0 --- /dev/null +++ b/packages/SystemUI/res/layout/recents_multistack_stack_size_dialog.xml @@ -0,0 +1,70 @@ +<?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="wrap_content" + android:layout_height="wrap_content" + android:padding="16dp" + android:orientation="vertical" + android:descendantFocusability="beforeDescendants" + android:focusableInTouchMode="true"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <EditText + android:id="@+id/inset_left" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:hint="Left" + android:singleLine="true" + android:imeOptions="actionNext" + android:inputType="number" + android:selectAllOnFocus="true" /> + <EditText + android:id="@+id/inset_top" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:hint="Top" + android:singleLine="true" + android:imeOptions="actionNext" + android:inputType="number" + android:selectAllOnFocus="true" /> + <EditText + android:id="@+id/inset_right" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:hint="Right" + android:singleLine="true" + android:imeOptions="actionNext" + android:inputType="number" + android:selectAllOnFocus="true" /> + <EditText + android:id="@+id/inset_bottom" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:hint="Bottom" + android:singleLine="true" + android:imeOptions="actionDone" + android:inputType="number" + android:selectAllOnFocus="true" /> + </LinearLayout> +</LinearLayout>
\ No newline at end of file diff --git a/packages/SystemUI/res/layout/recents_task_view_header.xml b/packages/SystemUI/res/layout/recents_task_view_header.xml index f1d8ad0..53047a3 100644 --- a/packages/SystemUI/res/layout/recents_task_view_header.xml +++ b/packages/SystemUI/res/layout/recents_task_view_header.xml @@ -43,6 +43,16 @@ android:ellipsize="marquee" android:fadingEdge="horizontal" /> <com.android.systemui.recents.views.FixedSizeImageView + android:id="@+id/move_task" + android:layout_width="48dp" + android:layout_height="48dp" + android:layout_marginEnd="52dp" + android:layout_gravity="center_vertical|end" + android:padding="12dp" + android:background="@drawable/recents_button_bg" + android:src="@drawable/star" + android:visibility="gone" /> + <com.android.systemui.recents.views.FixedSizeImageView android:id="@+id/dismiss_task" android:layout_width="48dp" android:layout_height="48dp" |