blob: 85502dd5ccf159a5afd99a41c1917a5202669ba0 [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.
Adrien Béraudffd32412012-08-07 18:39:23 -04003
Alexandre Lision8b9d8e82013-10-04 09:21:27 -04004Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
Adrien Béraud7f80a002015-12-09 17:56:40 -05005 Adrien Beraud <adrien.beraud@savoirfairelinux.com>
Adrien Béraudffd32412012-08-07 18:39:23 -04006
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
Adrien Béraud7f80a002015-12-09 17:56:40 -05009the Free Software Foundation; either version 3 of the License, or
10(at your option) any later version.
Adrien Béraudffd32412012-08-07 18:39:23 -040011
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software
Adrien Béraud7f80a002015-12-09 17:56:40 -050019 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Alexandre Savard65077932012-09-18 14:08:40 -040020-->
alisiond295ec22013-05-17 10:12:13 -040021
Adrien Béraud7f80a002015-12-09 17:56:40 -050022<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
23 android:id="@+id/contactview"
Alexandre Savard65077932012-09-18 14:08:40 -040024 android:layout_width="match_parent"
Adrien Béraud7f80a002015-12-09 17:56:40 -050025 android:layout_height="72dp"
Adrien Béraud06637f62016-02-03 11:48:43 -050026 android:minHeight="72dp"
27 android:descendantFocusability="blocksDescendants">
Alexandre Lisione1c96db2013-10-04 14:34:21 -040028
Adrien Béraud7f80a002015-12-09 17:56:40 -050029 <ImageView
30 android:id="@+id/photo"
31 android:layout_width="48dp"
32 android:layout_height="48dp"
33 android:layout_centerVertical="true"
34 android:layout_marginLeft="16dp"
35 android:layout_marginRight="16dp"
36 android:contentDescription="@string/contact_picture_description"
Adrien Béraudabd338e2015-12-12 01:57:31 -050037 android:scaleType="centerCrop"
38 android:layout_alignParentStart="true" />
Adrien Béraud7f80a002015-12-09 17:56:40 -050039
40 <TextView
41 android:id="@+id/display_name"
42 android:layout_width="wrap_content"
Adrien Béraudb179bab2015-10-08 12:04:22 -040043 android:layout_height="wrap_content"
Adrien Béraud7f80a002015-12-09 17:56:40 -050044 android:layout_centerVertical="true"
Adrien Béraud7f80a002015-12-09 17:56:40 -050045 android:gravity="center_vertical"
46 android:textColor="@color/text_color_primary"
47 android:textIsSelectable="false"
48 android:textSize="16sp"
Adrien Béraudabd338e2015-12-12 01:57:31 -050049 android:layout_toEndOf="@+id/photo"
50 android:layout_toStartOf="@+id/quick_call"
51 android:textAlignment="viewStart" />
Alexandre Lisione1c96db2013-10-04 14:34:21 -040052
Adrien Béraud7f80a002015-12-09 17:56:40 -050053 <ImageButton
54 android:id="@+id/quick_call"
55 android:layout_width="wrap_content"
Adrien Béraud06637f62016-02-03 11:48:43 -050056 android:layout_height="wrap_content"
Adrien Béraud7f80a002015-12-09 17:56:40 -050057 android:layout_alignParentEnd="true"
Adrien Béraud7f80a002015-12-09 17:56:40 -050058 android:layout_centerVertical="true"
Adrien Béraud7f80a002015-12-09 17:56:40 -050059 android:contentDescription="@string/contact_quick_call_description"
Adrien Béraud7f80a002015-12-09 17:56:40 -050060 android:src="@drawable/ic_call_white_24dp"
Adrien Béraud06637f62016-02-03 11:48:43 -050061 android:tint="@color/black"
62 android:background="?selectableItemBackgroundBorderless"
63 android:padding="16dp" />
Adrien Béraudb179bab2015-10-08 12:04:22 -040064
Adrien Béraud7f80a002015-12-09 17:56:40 -050065</RelativeLayout>