• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4 * Copyright (C) 2008 Esmertec AG.
5 * Copyright (C) 2008 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<view xmlns:android="http://schemas.android.com/apk/res/android"
22    class="com.android.im.app.BlockedContactView"
23    android:orientation="horizontal"
24    android:layout_width="fill_parent"
25    android:layout_height="wrap_content"
26    android:minHeight="?android:attr/listPreferredItemHeight"
27    android:paddingLeft="9dip"
28    android:paddingRight="9dip">
29
30    <FrameLayout
31        android:layout_gravity="center_vertical"
32        android:layout_width="60dip"
33        android:layout_height="60dip">
34
35        <ImageView android:id="@+id/avatar"
36            android:layout_width="fill_parent"
37            android:layout_height="fill_parent"
38            android:padding="2dip"
39            android:scaleType="fitCenter" />
40
41        <!-- Draw the circle-slash over top of the user's avatar -->
42        <ImageView android:id="@+id/blocked"
43            android:src="@drawable/ic_im_block"
44            android:layout_width="wrap_content"
45            android:layout_height="wrap_content"
46            android:layout_gravity="center" />
47    </FrameLayout>
48
49    <LinearLayout
50        android:orientation="vertical"
51        android:paddingLeft="9dip"
52        android:layout_gravity="center_vertical"
53        android:layout_width="fill_parent"
54        android:layout_height="wrap_content">
55
56        <TextView android:id="@+id/line1"
57            android:maxLines="1"
58            android:layout_width="fill_parent"
59            android:layout_weight="1"
60            android:layout_height="wrap_content"
61            android:textAppearance="?android:attr/textAppearanceLarge" />
62
63        <TextView android:id="@+id/line2"
64            android:maxLines="1"
65            android:layout_width="fill_parent"
66            android:layout_height="wrap_content"
67            android:textAppearance="?android:attr/textAppearanceMedium" />
68
69    </LinearLayout>
70
71</view>
72