• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4 * Copyright (C) 2008 The Android Open Source Project
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 *      http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18-->
19
20<com.android.im.app.ProviderListItem
21    xmlns:android="http://schemas.android.com/apk/res/android"
22    android:orientation="horizontal"
23    android:layout_width="fill_parent"
24    android:layout_height="?android:attr/listPreferredItemHeight">
25
26    <ImageView
27        android:id="@+id/providerIcon"
28        android:layout_gravity="center_vertical"
29        android:scaleType="fitXY"
30        android:paddingLeft="5dip"
31        android:paddingRight="2dip"
32        android:layout_width="39dip"
33        android:layout_height="32dip"/>
34
35    <LinearLayout
36        android:id="@+id/underBubble"
37        android:orientation="horizontal"
38        android:layout_weight="1"
39        android:layout_width="0dip"
40        android:layout_height="fill_parent">
41
42        <LinearLayout
43            android:orientation="vertical"
44            android:layout_weight="1"
45            android:layout_width="0dip"
46            android:layout_height="wrap_content"
47            android:layout_gravity="center_vertical">
48
49            <LinearLayout
50                android:orientation="horizontal"
51                android:layout_width="fill_parent"
52                android:layout_height="wrap_content">
53
54                <TextView android:id="@+id/providerName"
55                    android:textColor="@color/landing_page_text"
56                    android:textAppearance="?android:attr/textAppearanceLarge"
57                    android:textStyle="bold"
58                    android:singleLine="true"
59                    android:layout_weight="1.0"
60                    android:ellipsize="marquee"
61                    android:layout_width="fill_parent"
62                    android:layout_height="wrap_content" />
63                <TextView android:id="@+id/conversations"
64                    android:textAppearance="?android:attr/textAppearanceMedium"
65                    android:textColor="@color/landing_page_text_secondary"
66                    android:singleLine="true"
67                    android:paddingRight="3dip"
68                    android:paddingLeft="5dip"
69                    android:layout_width="wrap_content"
70                    android:layout_height="wrap_content" />
71            </LinearLayout>
72
73            <TextView android:id="@+id/loginName"
74                android:textAppearance="?android:attr/textAppearanceSmall"
75                android:textColor="@color/landing_page_text"
76                android:ellipsize="marquee"
77                android:singleLine="true"
78                android:layout_width="fill_parent"
79               android:layout_height="wrap_content"/>
80        </LinearLayout>
81        <ImageView
82            android:id="@+id/statusIcon"
83            android:scaleType="fitXY"
84            android:paddingRight="6dip"
85            android:paddingLeft="6dip"
86            android:layout_weight="0"
87            android:layout_gravity="center_vertical"
88            android:layout_width="30dip"
89            android:layout_height="18dip"/>
90    </LinearLayout>
91</com.android.im.app.ProviderListItem>