blob: efe4f6852950c8628639327f303348425b8d83d0 [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"
Alexandre Lision10090552016-11-17 14:54:42 -050024 xmlns:tools="http://schemas.android.com/tools"
Adrien Béraud7f80a002015-12-09 17:56:40 -050025 android:id="@+id/contactview"
Alexandre Savard65077932012-09-18 14:08:40 -040026 android:layout_width="match_parent"
Adrien Béraud7f80a002015-12-09 17:56:40 -050027 android:layout_height="72dp"
Romain Bertozzib66bf9f2016-05-02 17:13:59 -040028 android:descendantFocusability="blocksDescendants"
29 android:minHeight="72dp">
Alexandre Lisione1c96db2013-10-04 14:34:21 -040030
Adrien Béraud7f80a002015-12-09 17:56:40 -050031 <ImageView
32 android:id="@+id/photo"
33 android:layout_width="48dp"
34 android:layout_height="48dp"
Romain Bertozzib66bf9f2016-05-02 17:13:59 -040035 android:layout_alignParentLeft="true"
36 android:layout_alignParentStart="true"
Adrien Béraud7f80a002015-12-09 17:56:40 -050037 android:layout_centerVertical="true"
38 android:layout_marginLeft="16dp"
39 android:layout_marginRight="16dp"
40 android:contentDescription="@string/contact_picture_description"
Alexandre Lision10090552016-11-17 14:54:42 -050041 android:scaleType="centerCrop"
42 android:src="@drawable/ic_contact_picture" />
Adrien Béraud7f80a002015-12-09 17:56:40 -050043
44 <TextView
45 android:id="@+id/display_name"
46 android:layout_width="wrap_content"
Adrien Béraudb179bab2015-10-08 12:04:22 -040047 android:layout_height="wrap_content"
Adrien Béraud7f80a002015-12-09 17:56:40 -050048 android:layout_centerVertical="true"
Romain Bertozzib66bf9f2016-05-02 17:13:59 -040049 android:layout_toEndOf="@+id/photo"
50 android:layout_toLeftOf="@+id/quick_call"
51 android:layout_toRightOf="@+id/photo"
52 android:layout_toStartOf="@+id/quick_call"
Alexandre Lision10090552016-11-17 14:54:42 -050053 android:ellipsize="end"
Romain Bertozzib66bf9f2016-05-02 17:13:59 -040054 android:gravity="start"
Alexandre Lision10090552016-11-17 14:54:42 -050055 android:maxLines="1"
56 android:singleLine="true"
Romain Bertozzib66bf9f2016-05-02 17:13:59 -040057 android:textAlignment="viewStart"
Adrien Béraud7f80a002015-12-09 17:56:40 -050058 android:textColor="@color/text_color_primary"
59 android:textIsSelectable="false"
Alexandre Lision10090552016-11-17 14:54:42 -050060 android:textSize="16sp"
61 tools:text="display name" />
Alexandre Lisione1c96db2013-10-04 14:34:21 -040062
Adrien Béraud7f80a002015-12-09 17:56:40 -050063 <ImageButton
64 android:id="@+id/quick_call"
65 android:layout_width="wrap_content"
Adrien Béraud06637f62016-02-03 11:48:43 -050066 android:layout_height="wrap_content"
Adrien Béraud7f80a002015-12-09 17:56:40 -050067 android:layout_alignParentEnd="true"
Romain Bertozzib66bf9f2016-05-02 17:13:59 -040068 android:layout_alignParentRight="true"
Adrien Béraud7f80a002015-12-09 17:56:40 -050069 android:layout_centerVertical="true"
Alexandre Lision10090552016-11-17 14:54:42 -050070 android:alpha="0.54"
Adrien Béraud06637f62016-02-03 11:48:43 -050071 android:background="?selectableItemBackgroundBorderless"
Romain Bertozzib66bf9f2016-05-02 17:13:59 -040072 android:contentDescription="@string/contact_quick_call_description"
73 android:padding="16dp"
Alexandre Lision10090552016-11-17 14:54:42 -050074 android:src="@drawable/ic_videocam_white"
Romain Bertozzib66bf9f2016-05-02 17:13:59 -040075 android:tint="@color/black" />
Adrien Béraudb179bab2015-10-08 12:04:22 -040076
Adrien Béraud7f80a002015-12-09 17:56:40 -050077</RelativeLayout>