|
26 | 26 | android:paddingBottom="@dimen/status_bar_recents_item_padding"> |
27 | 27 |
|
28 | 28 | <RelativeLayout android:id="@+id/recent_item" |
| 29 | + android:layout_gravity="center_horizontal" |
29 | 30 | android:layout_height="wrap_content" |
30 | | - android:layout_width="match_parent"> |
| 31 | + android:layout_width="wrap_content"> |
31 | 32 |
|
32 | | - <FrameLayout android:id="@+id/app_thumbnail" |
33 | | - android:layout_width="wrap_content" |
34 | | - android:layout_height="wrap_content" |
35 | | - android:layout_alignParentLeft="true" |
36 | | - android:layout_alignParentTop="true" |
37 | | - android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" |
38 | | - android:background="@drawable/recents_thumbnail_bg" |
39 | | - android:foreground="@drawable/recents_thumbnail_fg"> |
40 | | - <ImageView android:id="@+id/app_thumbnail_image" |
41 | | - android:layout_width="@dimen/status_bar_recents_thumbnail_width" |
42 | | - android:layout_height="@dimen/status_bar_recents_thumbnail_height" |
43 | | - android:visibility="invisible" |
44 | | - /> |
45 | | - <ImageView android:id="@+id/app_icon" |
46 | | - android:layout_width="wrap_content" |
47 | | - android:layout_height="wrap_content" |
48 | | - android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" |
49 | | - android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" |
50 | | - android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" |
51 | | - android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" |
52 | | - android:adjustViewBounds="true" |
53 | | - /> |
54 | | - </FrameLayout> |
55 | 33 | <TextView android:id="@+id/app_label" |
56 | 34 | android:layout_width="@dimen/status_bar_recents_app_label_width" |
57 | 35 | android:layout_height="wrap_content" |
|
61 | 39 | android:scrollHorizontally="true" |
62 | 40 | android:layout_alignParentLeft="true" |
63 | 41 | android:layout_alignTop="@id/app_icon" |
| 42 | + android:paddingTop="2dp" |
64 | 43 | android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" |
65 | 44 | android:singleLine="true" |
66 | 45 | android:ellipsize="marquee" |
67 | 46 | android:textColor="@color/status_bar_recents_app_label_color" |
68 | 47 | /> |
69 | | - |
| 48 | + <FrameLayout android:id="@+id/app_thumbnail" |
| 49 | + android:layout_width="wrap_content" |
| 50 | + android:layout_height="wrap_content" |
| 51 | + android:layout_alignParentTop="true" |
| 52 | + android:layout_toRightOf="@id/app_label" |
| 53 | + android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" |
| 54 | + android:background="@drawable/recents_thumbnail_bg" |
| 55 | + android:foreground="@drawable/recents_thumbnail_fg"> |
| 56 | + <ImageView android:id="@+id/app_thumbnail_image" |
| 57 | + android:layout_width="@dimen/status_bar_recents_thumbnail_width" |
| 58 | + android:layout_height="@dimen/status_bar_recents_thumbnail_height" |
| 59 | + android:visibility="invisible" |
| 60 | + /> |
| 61 | + </FrameLayout> |
70 | 62 | <View android:id="@+id/recents_callout_line" |
71 | 63 | android:layout_width="@dimen/status_bar_recents_app_label_width" |
72 | 64 | android:layout_height="1dip" |
|
79 | 71 | android:background="@drawable/recents_callout_line" |
80 | 72 | /> |
81 | 73 |
|
| 74 | + <ImageView android:id="@+id/app_icon" |
| 75 | + android:layout_width="wrap_content" |
| 76 | + android:layout_height="wrap_content" |
| 77 | + android:layout_toRightOf="@id/app_label" |
| 78 | + android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" |
| 79 | + android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" |
| 80 | + android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" |
| 81 | + android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" |
| 82 | + android:scaleType="centerInside" |
| 83 | + android:adjustViewBounds="true" |
| 84 | + /> |
| 85 | + |
82 | 86 | <TextView android:id="@+id/app_description" |
83 | 87 | android:layout_width="@dimen/status_bar_recents_app_label_width" |
84 | 88 | android:layout_height="wrap_content" |
|
0 commit comments