diff options
author | Peter Ng <petergng@google.com> | 2011-10-12 15:49:39 -0700 |
---|---|---|
committer | Peter Ng <petergng@google.com> | 2011-10-14 12:37:42 -0700 |
commit | 2d136a83a012f8a27aee0300d264243728d12611 (patch) | |
tree | e9240f43d7412263ed9c0e7330f2b00f497ed1ac /packages/SystemUI/res/layout-port | |
parent | dcb4e158bcddb8266afaf863ae8832b92bed62a7 (diff) | |
download | frameworks_base-2d136a83a012f8a27aee0300d264243728d12611.zip frameworks_base-2d136a83a012f8a27aee0300d264243728d12611.tar.gz frameworks_base-2d136a83a012f8a27aee0300d264243728d12611.tar.bz2 |
Layout changes to recents
Bug: 5411813
-gravity is set to center
-textsize is smaller
-app icon placement now hangs off the screenshot
-recents callout line now defined in colors
-recents thumbnail normal state drawable added
Change-Id: Ibeaec7e3f0a3bcdbe3f990886b1536cb7d7fdc03
Diffstat (limited to 'packages/SystemUI/res/layout-port')
-rw-r--r-- | packages/SystemUI/res/layout-port/status_bar_recent_item.xml | 54 |
1 files changed, 29 insertions, 25 deletions
diff --git a/packages/SystemUI/res/layout-port/status_bar_recent_item.xml b/packages/SystemUI/res/layout-port/status_bar_recent_item.xml index 8c82eb1..3d8b9d6 100644 --- a/packages/SystemUI/res/layout-port/status_bar_recent_item.xml +++ b/packages/SystemUI/res/layout-port/status_bar_recent_item.xml @@ -26,32 +26,10 @@ android:paddingBottom="@dimen/status_bar_recents_item_padding"> <RelativeLayout android:id="@+id/recent_item" + android:layout_gravity="center_horizontal" android:layout_height="wrap_content" - android:layout_width="match_parent"> + android:layout_width="wrap_content"> - <FrameLayout 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:background="@drawable/recents_thumbnail_bg" - android:foreground="@drawable/recents_thumbnail_fg"> - <ImageView android:id="@+id/app_thumbnail_image" - android:layout_width="@dimen/status_bar_recents_thumbnail_width" - android:layout_height="@dimen/status_bar_recents_thumbnail_height" - android:visibility="invisible" - /> - <ImageView android:id="@+id/app_icon" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" - android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" - android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" - android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" - android:adjustViewBounds="true" - /> - </FrameLayout> <TextView android:id="@+id/app_label" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" @@ -61,12 +39,26 @@ android:scrollHorizontally="true" android:layout_alignParentLeft="true" android:layout_alignTop="@id/app_icon" + android:paddingTop="2dp" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:singleLine="true" android:ellipsize="marquee" android:textColor="@color/status_bar_recents_app_label_color" /> - + <FrameLayout android:id="@+id/app_thumbnail" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_toRightOf="@id/app_label" + android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" + android:background="@drawable/recents_thumbnail_bg" + android:foreground="@drawable/recents_thumbnail_fg"> + <ImageView android:id="@+id/app_thumbnail_image" + android:layout_width="@dimen/status_bar_recents_thumbnail_width" + android:layout_height="@dimen/status_bar_recents_thumbnail_height" + android:visibility="invisible" + /> + </FrameLayout> <View android:id="@+id/recents_callout_line" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="1dip" @@ -79,6 +71,18 @@ android:background="@drawable/recents_callout_line" /> + <ImageView android:id="@+id/app_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toRightOf="@id/app_label" + android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" + android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" + android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" + android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" + android:scaleType="centerInside" + android:adjustViewBounds="true" + /> + <TextView android:id="@+id/app_description" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" |