blob: 1d712ee5b9ede787bef05ccb5e572c1f46cd86d6 [file] [log] [blame]
Dmitri Plotnikovb4491ee2009-06-15 09:31:02 -07001<?xml version="1.0" encoding="utf-8"?>
2
3<!-- Copyright (C) 2009 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17
18<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
Romain Guy6304c0b2010-01-08 15:06:49 -080019 android:layout_width="match_parent"
Dmitri Plotnikovb4491ee2009-06-15 09:31:02 -070020 android:layout_height="?android:attr/listPreferredItemHeight"
21 android:paddingLeft="12dip"
22 android:paddingRight="12dip"
Fabrice Di Meglio7d3b9152013-04-04 19:49:34 -070023 android:paddingStart="12dip"
24 android:paddingEnd="12dip"
Dmitri Plotnikovb4491ee2009-06-15 09:31:02 -070025>
26 <ImageView
27 android:id="@+id/sourceIcon"
28 android:layout_width="32dip"
29 android:layout_height="32dip"
30 android:layout_alignParentRight="true"
Fabrice Di Meglio7d3b9152013-04-04 19:49:34 -070031 android:layout_alignParentEnd="true"
Dmitri Plotnikovb4491ee2009-06-15 09:31:02 -070032 android:layout_alignParentTop="true"
33 android:layout_centerVertical="true"
34 android:layout_marginTop="15dip"
35 android:layout_marginLeft="5dip"
36 android:layout_marginRight="8dip"
Fabrice Di Meglio7d3b9152013-04-04 19:49:34 -070037 android:layout_marginStart="5dip"
38 android:layout_marginEnd="8dip"
Dmitri Plotnikovb4491ee2009-06-15 09:31:02 -070039
40 android:gravity="center"
41 android:scaleType="centerInside"
42 />
43
44 <TextView android:id="@+id/additionalData"
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"
47 android:layout_toLeftOf="@id/sourceIcon"
Fabrice Di Meglio7d3b9152013-04-04 19:49:34 -070048 android:layout_toStartOf="@id/sourceIcon"
Dmitri Plotnikovb4491ee2009-06-15 09:31:02 -070049 android:layout_alignParentBottom="true"
50 android:layout_alignParentLeft="true"
Fabrice Di Meglio7d3b9152013-04-04 19:49:34 -070051 android:layout_alignParentStart="true"
Dmitri Plotnikovb4491ee2009-06-15 09:31:02 -070052 android:layout_alignWithParentIfMissing="true"
53 android:layout_marginBottom="8dip"
54 android:layout_marginTop="-8dip"
55
56 android:singleLine="true"
57 android:ellipsize="marquee"
58 android:textAppearance="?android:attr/textAppearanceSmall"
59 />
60
61 <TextView android:id="@+id/name"
62 android:layout_width="0dip"
63 android:layout_height="0dip"
64 android:layout_alignWithParentIfMissing="true"
65 android:layout_alignParentLeft="true"
Fabrice Di Meglio7d3b9152013-04-04 19:49:34 -070066 android:layout_alignParentStart="true"
Dmitri Plotnikovb4491ee2009-06-15 09:31:02 -070067 android:layout_alignParentTop="true"
68 android:layout_above="@id/additionalData"
69 android:layout_toLeftOf="@id/sourceIcon"
Fabrice Di Meglio7d3b9152013-04-04 19:49:34 -070070 android:layout_toStartOf="@id/sourceIcon"
Dmitri Plotnikovb4491ee2009-06-15 09:31:02 -070071 android:layout_marginBottom="1dip"
72
73 android:textAppearance="?android:attr/textAppearanceLarge"
74 android:singleLine="true"
75 android:ellipsize="marquee"
76 android:gravity="center_vertical|left"
77 />
78
79</RelativeLayout>