blob: 7f749021f0ae67bd45a22896c7b55acfdd800e77 [file] [log] [blame]
Adrien Béraudffd32412012-08-07 18:39:23 -04001<?xml version="1.0" encoding="utf-8"?>
alisiond295ec22013-05-17 10:12:13 -04002<!--
Alexandre Lision8b9d8e82013-10-04 09:21:27 -04003Copyright (C) 2004-2013 Savoir-Faire Linux Inc.
Adrien Béraudffd32412012-08-07 18:39:23 -04004
Alexandre Lision8b9d8e82013-10-04 09:21:27 -04005Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
6 Adrien Beraud <adrien.beraud@gmail.com>
Adrien Béraudffd32412012-08-07 18:39:23 -04007
8This program is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 3 of the License, or
11(at your option) any later version.
12
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with this program; if not, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
22Additional permission under GNU GPL version 3 section 7:
23
24If you modify this program, or any covered work, by linking or
25combining it with the OpenSSL project's OpenSSL library (or a
26modified version of that library), containing parts covered by the
27terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
28grants you additional permission to convey the resulting work.
29Corresponding Source for a non-source form of such a combination
30shall include the source code for the parts of OpenSSL used as well
31as that of the covered work.
Alexandre Savard65077932012-09-18 14:08:40 -040032-->
alisiond295ec22013-05-17 10:12:13 -040033
34<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
35 android:id="@+id/contactview"
Alexandre Savard65077932012-09-18 14:08:40 -040036 android:layout_width="match_parent"
Alexandre Lision8b9d8e82013-10-04 09:21:27 -040037 android:layout_height="match_parent"
38 android:background="@drawable/item_contact_selector" >
alision17052d42013-04-22 10:39:38 -040039
alisiond295ec22013-05-17 10:12:13 -040040 <ImageView
41 android:id="@+id/photo"
42 android:layout_width="70dp"
43 android:layout_height="70dp"
Alexandre Lision8b9d8e82013-10-04 09:21:27 -040044 android:scaleType="centerCrop"
45 android:contentDescription="@string/contact_picture_description" />
alisiond295ec22013-05-17 10:12:13 -040046
47 <TextView
48 android:id="@+id/display_name"
49 android:layout_width="wrap_content"
50 android:layout_height="wrap_content"
alision2cb99562013-05-30 17:02:20 -040051 android:layout_alignBottom="@+id/photo"
Alexandre Lision8b9d8e82013-10-04 09:21:27 -040052 android:layout_alignTop="@+id/photo"
53 android:layout_marginLeft="15dp"
alisiond295ec22013-05-17 10:12:13 -040054 android:layout_toRightOf="@+id/photo"
Alexandre Lision8b9d8e82013-10-04 09:21:27 -040055 android:gravity="center_vertical"
56 android:textAppearance="?android:attr/textAppearanceMedium"
57 android:textColor="@color/white"
58 android:textSize="14sp" />
alisiond295ec22013-05-17 10:12:13 -040059
Alexandre Lision8b9d8e82013-10-04 09:21:27 -040060 <LinearLayout
61 android:layout_width="wrap_content"
62 android:layout_height="wrap_content"
63 android:layout_alignParentRight="true"
64 android:layout_centerVertical="true"
65 android:showDividers="middle"
66 android:divider="@drawable/divider" >
alisiond295ec22013-05-17 10:12:13 -040067
Alexandre Lision8b9d8e82013-10-04 09:21:27 -040068 <ImageView
69 android:id="@+id/quick_call"
70 android:layout_width="wrap_content"
71 android:layout_height="wrap_content"
72 android:background="@null"
73 android:layout_margin="5dp"
74 android:contentDescription="@string/contact_quick_call_description"
75 android:src="@drawable/ic_action_call" />
76
77 <ImageView
78 android:id="@+id/quick_message"
79 android:layout_width="wrap_content"
80 android:layout_height="wrap_content"
81 android:background="@null"
82 android:layout_margin="5dp"
83 android:contentDescription="@string/contact_quick_msg_description"
84 android:src="@drawable/ic_action_chat" />
85 </LinearLayout>
alisiond295ec22013-05-17 10:12:13 -040086
87</RelativeLayout>