status_bar_recent_item.xml revision fc8fa638617efb5695a1f89ea75375faebbe2a40
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/* apps/common/assets/default/default/skins/StatusBar.xml
4**
5** Copyright 2006, The Android Open Source Project
6**
7** Licensed under the Apache License, Version 2.0 (the "License");
8** you may not use this file except in compliance with the License.
9** You may obtain a copy of the License at
10**
11**     http://www.apache.org/licenses/LICENSE-2.0
12**
13** Unless required by applicable law or agreed to in writing, software
14** distributed under the License is distributed on an "AS IS" BASIS,
15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16** See the License for the specific language governing permissions and
17** limitations under the License.
18*/
19-->
20
21<!--    android:background="@drawable/status_bar_closed_default_background" -->
22<RelativeLayout
23    xmlns:android="http://schemas.android.com/apk/res/android"
24    android:layout_height="wrap_content"
25    android:layout_width="@dimen/status_bar_recents_thumbnail_view_width">
26
27    <FrameLayout android:id="@+id/app_thumbnail"
28        android:layout_width="wrap_content"
29        android:layout_height="wrap_content"
30        android:layout_alignParentLeft="true"
31        android:layout_alignParentTop="true"
32        android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin"
33        android:scaleType="center"
34        android:clickable="true"
35        android:background="@drawable/recents_thumbnail_bg"
36        android:foreground="@drawable/recents_thumbnail_overlay">
37        <ImageView android:id="@+id/app_thumbnail_image"
38            android:layout_width="match_parent"
39            android:layout_height="match_parent"
40            android:visibility="invisible"
41        />
42    </FrameLayout>
43
44    <ImageView android:id="@+id/app_icon"
45        android:layout_width="wrap_content"
46        android:layout_height="wrap_content"
47        android:layout_alignLeft="@id/app_thumbnail"
48        android:layout_alignTop="@id/app_thumbnail"
49        android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin"
50        android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin"
51        android:maxWidth="@dimen/status_bar_recents_thumbnail_max_width"
52        android:maxHeight="@dimen/status_bar_recents_thumbnail_max_height"
53        android:adjustViewBounds="true"
54        android:visibility="invisible"
55    />
56
57    <TextView android:id="@+id/app_label"
58        android:layout_width="wrap_content"
59        android:layout_height="wrap_content"
60        android:textSize="@dimen/status_bar_recents_app_label_text_size"
61        android:fadingEdge="horizontal"
62        android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length"
63        android:scrollHorizontally="true"
64        android:layout_alignLeft="@id/app_thumbnail"
65        android:layout_below="@id/app_thumbnail"
66        android:layout_marginTop="@dimen/status_bar_recents_text_description_padding"
67        android:layout_marginLeft="@dimen/recents_thumbnail_bg_padding_left"
68        android:singleLine="true"
69        android:ellipsize="marquee"
70        android:visibility="invisible"
71    />
72
73    <TextView android:id="@+id/app_description"
74        android:layout_width="wrap_content"
75        android:layout_height="wrap_content"
76        android:textSize="@dimen/status_bar_recents_app_description_text_size"
77        android:fadingEdge="horizontal"
78        android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length"
79        android:scrollHorizontally="true"
80        android:layout_alignLeft="@id/app_thumbnail"
81        android:layout_below="@id/app_label"
82        android:layout_marginTop="@dimen/status_bar_recents_text_description_padding"
83        android:layout_marginLeft="@dimen/recents_thumbnail_bg_padding_left"
84        android:singleLine="true"
85        android:ellipsize="marquee"
86    />
87
88</RelativeLayout>
89