blob: a1c01999c8896ed4b50c3b2c3d4a80551be558e2 [file] [log] [blame]
Adrien Béraud7f80a002015-12-09 17:56:40 -05001<?xml version="1.0" encoding="utf-8"?><!--
Adrien Béraudec528bb2016-01-14 16:52:51 -05002Copyright (C) 2004-2016 Savoir-faire Linux Inc.
Romain Bertozzib66bf9f2016-05-02 17:13:59 -04003
Alexandre Lision8b9d8e82013-10-04 09:21:27 -04004Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
Romain Bertozzib66bf9f2016-05-02 17:13:59 -04005 Adrien Beraud <adrien.beraud@savoirfairelinux.com>
6 Romain Bertozzi <romain.bertozzi@savoirfairelinux.com>
7
Adrien Béraudffd32412012-08-07 18:39:23 -04008This program is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
Adrien Béraud7f80a002015-12-09 17:56:40 -050010the Free Software Foundation; either version 3 of the License, or
11(at your option) any later version.
Romain Bertozzib66bf9f2016-05-02 17:13:59 -040012
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
Adrien Béraud7f80a002015-12-09 17:56:40 -050020 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Alexandre Savard65077932012-09-18 14:08:40 -040021-->
alisiond295ec22013-05-17 10:12:13 -040022
Adrien Béraud7f80a002015-12-09 17:56:40 -050023<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
24 android:id="@+id/contactview"
Alexandre Savard65077932012-09-18 14:08:40 -040025 android:layout_width="match_parent"
Adrien Béraud7f80a002015-12-09 17:56:40 -050026 android:layout_height="72dp"
Romain Bertozzib66bf9f2016-05-02 17:13:59 -040027 android:descendantFocusability="blocksDescendants"
28 android:minHeight="72dp">
Alexandre Lisione1c96db2013-10-04 14:34:21 -040029
Adrien Béraud7f80a002015-12-09 17:56:40 -050030 <ImageView
31 android:id="@+id/photo"
32 android:layout_width="48dp"
33 android:layout_height="48dp"
Romain Bertozzib66bf9f2016-05-02 17:13:59 -040034 android:layout_alignParentLeft="true"
35 android:layout_alignParentStart="true"
Adrien Béraud7f80a002015-12-09 17:56:40 -050036 android:layout_centerVertical="true"
37 android:layout_marginLeft="16dp"
38 android:layout_marginRight="16dp"
39 android:contentDescription="@string/contact_picture_description"
Romain Bertozzib66bf9f2016-05-02 17:13:59 -040040 android:scaleType="centerCrop" />
Adrien Béraud7f80a002015-12-09 17:56:40 -050041
42 <TextView
43 android:id="@+id/display_name"
44 android:layout_width="wrap_content"
Adrien Béraudb179bab2015-10-08 12:04:22 -040045 android:layout_height="wrap_content"
Adrien Béraud7f80a002015-12-09 17:56:40 -050046 android:layout_centerVertical="true"
Romain Bertozzib66bf9f2016-05-02 17:13:59 -040047 android:layout_toEndOf="@+id/photo"
48 android:layout_toLeftOf="@+id/quick_call"
49 android:layout_toRightOf="@+id/photo"
50 android:layout_toStartOf="@+id/quick_call"
51 android:gravity="start"
52 android:textAlignment="viewStart"
Adrien Béraud7f80a002015-12-09 17:56:40 -050053 android:textColor="@color/text_color_primary"
54 android:textIsSelectable="false"
Romain Bertozzib66bf9f2016-05-02 17:13:59 -040055 android:textSize="16sp" />
Alexandre Lisione1c96db2013-10-04 14:34:21 -040056
Adrien Béraud7f80a002015-12-09 17:56:40 -050057 <ImageButton
58 android:id="@+id/quick_call"
59 android:layout_width="wrap_content"
Adrien Béraud06637f62016-02-03 11:48:43 -050060 android:layout_height="wrap_content"
Adrien Béraud7f80a002015-12-09 17:56:40 -050061 android:layout_alignParentEnd="true"
Romain Bertozzib66bf9f2016-05-02 17:13:59 -040062 android:layout_alignParentRight="true"
Adrien Béraud7f80a002015-12-09 17:56:40 -050063 android:layout_centerVertical="true"
Adrien Béraud06637f62016-02-03 11:48:43 -050064 android:background="?selectableItemBackgroundBorderless"
Romain Bertozzib66bf9f2016-05-02 17:13:59 -040065 android:contentDescription="@string/contact_quick_call_description"
66 android:padding="16dp"
67 android:src="@drawable/ic_call_white_24dp"
68 android:tint="@color/black" />
Adrien Béraudb179bab2015-10-08 12:04:22 -040069
Adrien Béraud7f80a002015-12-09 17:56:40 -050070</RelativeLayout>