diff options
author | Jim Miller <jaggies@google.com> | 2011-05-17 20:06:29 -0700 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2011-05-18 16:03:31 -0700 |
commit | 9f0f0e0e3100caec459a5b5ef836317844c83b3f (patch) | |
tree | 59b5232a14f1b46f3f5aaf2b7990dea0274b370c /packages/SystemUI/res/layout | |
parent | dff789754865dff19792f0799cce2f76f7d41227 (diff) | |
download | frameworks_base-9f0f0e0e3100caec459a5b5ef836317844c83b3f.zip frameworks_base-9f0f0e0e3100caec459a5b5ef836317844c83b3f.tar.gz frameworks_base-9f0f0e0e3100caec459a5b5ef836317844c83b3f.tar.bz2 |
First pass at integrating new ScrollView-based recents panel.
- added layout transitions
- now calls removeTask() for selected activity.
Change-Id: Ie57b3d79551353a564bb2e4da26243a10bb0198d
Diffstat (limited to 'packages/SystemUI/res/layout')
-rw-r--r-- | packages/SystemUI/res/layout/status_bar_recent_item.xml | 90 | ||||
-rw-r--r-- | packages/SystemUI/res/layout/status_bar_recent_panel.xml | 84 |
2 files changed, 174 insertions, 0 deletions
diff --git a/packages/SystemUI/res/layout/status_bar_recent_item.xml b/packages/SystemUI/res/layout/status_bar_recent_item.xml new file mode 100644 index 0000000..cd42d7e --- /dev/null +++ b/packages/SystemUI/res/layout/status_bar_recent_item.xml @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* apps/common/assets/default/default/skins/StatusBar.xml +** +** Copyright 2006, 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. +*/ +--> + +<!-- android:background="@drawable/status_bar_closed_default_background" --> +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="wrap_content" + android:layout_width="@dimen/status_bar_recents_thumbnail_view_width"> + + <ImageView android:id="@+id/app_thumbnail" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" + android:scaleType="center" + /> + + <ImageView android:id="@+id/app_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_marginLeft="131dip" + android:layout_marginTop="13dip" + android:maxWidth="@dimen/status_bar_recents_thumbnail_max_width" + android:maxHeight="@dimen/status_bar_recents_thumbnail_max_height" + android:adjustViewBounds="true" + /> + + <View android:id="@+id/recents_callout_line" + android:layout_width="97dip" + android:layout_height="1dip" + android:layout_alignParentTop="true" + android:layout_marginTop="61dip" + android:layout_alignParentLeft="true" + android:layout_marginLeft="16dip" + android:layout_toLeftOf="@id/app_thumbnail" + android:layout_marginRight="3dip" + android:background="@drawable/recents_callout_line" + /> + + <TextView android:id="@+id/app_label" + android:layout_width="97dip" + android:layout_height="wrap_content" + android:textSize="@dimen/status_bar_recents_app_description_text_size" + android:fadingEdge="horizontal" + android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" + android:scrollHorizontally="true" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_marginLeft="16dip" + android:layout_marginTop="32dip" + android:singleLine="true" + android:ellipsize="marquee" + /> + + <TextView android:id="@+id/app_description" + android:layout_width="97dip" + android:layout_height="wrap_content" + android:textSize="@dimen/status_bar_recents_app_description_text_size" + android:fadingEdge="horizontal" + android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" + android:scrollHorizontally="true" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_marginLeft="16dip" + android:layout_marginTop="61dip" + android:singleLine="true" + android:ellipsize="marquee" + /> + +</RelativeLayout> diff --git a/packages/SystemUI/res/layout/status_bar_recent_panel.xml b/packages/SystemUI/res/layout/status_bar_recent_panel.xml new file mode 100644 index 0000000..703cbc1 --- /dev/null +++ b/packages/SystemUI/res/layout/status_bar_recent_panel.xml @@ -0,0 +1,84 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* apps/common/assets/default/default/skins/StatusBar.xml +** +** Copyright 2010, 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. +*/ +--> + +<com.android.systemui.recent.RecentsPanelView + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/recents_root" + android:layout_height="match_parent" + android:layout_width="wrap_content"> + + <FrameLayout + android:id="@+id/recents_bg_protect" + android:background="@drawable/recents_bg_protect_tile" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_alignParentBottom="true" + android:paddingBottom="@*android:dimen/status_bar_height" + android:clipToPadding="false" + android:clipChildren="false"> + + <LinearLayout android:id="@+id/recents_glow" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="-49dip" + android:layout_gravity="bottom" + android:background="@drawable/recents_blue_glow" + android:orientation="horizontal" + android:clipToPadding="false" + android:clipChildren="false" + > + <com.android.systemui.recent.RecentsVerticalScrollView android:id="@+id/recents_container" + android:layout_width="@dimen/status_bar_recents_width" + android:layout_height="wrap_content" + android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin" + android:divider="@null" + android:stackFromBottom="true" + android:fadingEdge="vertical" + android:scrollbars="none" + android:fadingEdgeLength="20dip" + android:listSelector="@drawable/recents_thumbnail_bg_selector" + android:layout_gravity="bottom|left" + android:clipToPadding="false" + android:clipChildren="false"> + + <LinearLayout android:id="@+id/recents_linear_layout" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" + android:clipToPadding="false" + android:clipChildren="false"> + </LinearLayout> + + </com.android.systemui.recent.RecentsVerticalScrollView> + + + </LinearLayout> + + </FrameLayout> + + <View android:id="@+id/recents_dismiss_button" + android:layout_width="80px" + android:layout_height="@*android:dimen/status_bar_height" + android:layout_alignParentBottom="true" + android:layout_alignParentLeft="true" + android:background="@drawable/ic_sysbar_back_ime" + /> + +</com.android.systemui.recent.RecentsPanelView> |