blob: 16ccf21fe998b9d2ed623acfa70815fb72b101b1 [file] [log] [blame]
Adrien Béraud7f80a002015-12-09 17:56:40 -05001<?xml version="1.0" encoding="utf-8"?><!--
2Copyright (C) 2004-2015 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"
26 android:minHeight="72dp">
Alexandre Lisione1c96db2013-10-04 14:34:21 -040027
Adrien Béraud7f80a002015-12-09 17:56:40 -050028 <ImageView
29 android:id="@+id/photo"
30 android:layout_width="48dp"
31 android:layout_height="48dp"
32 android:layout_centerVertical="true"
33 android:layout_marginLeft="16dp"
34 android:layout_marginRight="16dp"
35 android:contentDescription="@string/contact_picture_description"
Adrien Béraudabd338e2015-12-12 01:57:31 -050036 android:scaleType="centerCrop"
37 android:layout_alignParentStart="true" />
Adrien Béraud7f80a002015-12-09 17:56:40 -050038
39 <TextView
40 android:id="@+id/display_name"
41 android:layout_width="wrap_content"
Adrien Béraudb179bab2015-10-08 12:04:22 -040042 android:layout_height="wrap_content"
Adrien Béraud7f80a002015-12-09 17:56:40 -050043 android:layout_centerVertical="true"
Adrien Béraud7f80a002015-12-09 17:56:40 -050044 android:gravity="center_vertical"
45 android:textColor="@color/text_color_primary"
46 android:textIsSelectable="false"
47 android:textSize="16sp"
Adrien Béraudabd338e2015-12-12 01:57:31 -050048 android:layout_toEndOf="@+id/photo"
49 android:layout_toStartOf="@+id/quick_call"
50 android:textAlignment="viewStart" />
Alexandre Lisione1c96db2013-10-04 14:34:21 -040051
Adrien Béraud7f80a002015-12-09 17:56:40 -050052 <ImageButton
53 android:id="@+id/quick_call"
54 android:layout_width="wrap_content"
55 android:layout_height="fill_parent"
56 android:layout_alignParentEnd="true"
Adrien Béraud7f80a002015-12-09 17:56:40 -050057 android:layout_centerVertical="true"
58 android:background="@null"
59 android:contentDescription="@string/contact_quick_call_description"
60 android:paddingLeft="32dp"
61 android:paddingRight="32dp"
62 android:src="@drawable/ic_call_white_24dp"
63 android:tint="@color/black" />
Adrien Béraudb179bab2015-10-08 12:04:22 -040064
Adrien Béraud7f80a002015-12-09 17:56:40 -050065</RelativeLayout>