Adrien Béraud | 7f80a00 | 2015-12-09 17:56:40 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?><!-- |
| 2 | Copyright (C) 2004-2015 Savoir-faire Linux Inc. |
Adrien Béraud | ffd3241 | 2012-08-07 18:39:23 -0400 | [diff] [blame] | 3 | |
Alexandre Lision | 8b9d8e8 | 2013-10-04 09:21:27 -0400 | [diff] [blame] | 4 | Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com> |
Adrien Béraud | 7f80a00 | 2015-12-09 17:56:40 -0500 | [diff] [blame] | 5 | Adrien Beraud <adrien.beraud@savoirfairelinux.com> |
Adrien Béraud | ffd3241 | 2012-08-07 18:39:23 -0400 | [diff] [blame] | 6 | |
| 7 | This program is free software; you can redistribute it and/or modify |
| 8 | it under the terms of the GNU General Public License as published by |
Adrien Béraud | 7f80a00 | 2015-12-09 17:56:40 -0500 | [diff] [blame] | 9 | the Free Software Foundation; either version 3 of the License, or |
| 10 | (at your option) any later version. |
Adrien Béraud | ffd3241 | 2012-08-07 18:39:23 -0400 | [diff] [blame] | 11 | |
| 12 | This program is distributed in the hope that it will be useful, |
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | GNU General Public License for more details. |
| 16 | |
| 17 | You should have received a copy of the GNU General Public License |
| 18 | along with this program; if not, write to the Free Software |
Adrien Béraud | 7f80a00 | 2015-12-09 17:56:40 -0500 | [diff] [blame] | 19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
Alexandre Savard | 6507793 | 2012-09-18 14:08:40 -0400 | [diff] [blame] | 20 | --> |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 21 | |
Adrien Béraud | 7f80a00 | 2015-12-09 17:56:40 -0500 | [diff] [blame] | 22 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 23 | android:id="@+id/contactview" |
Alexandre Savard | 6507793 | 2012-09-18 14:08:40 -0400 | [diff] [blame] | 24 | android:layout_width="match_parent" |
Adrien Béraud | 7f80a00 | 2015-12-09 17:56:40 -0500 | [diff] [blame] | 25 | android:layout_height="72dp" |
| 26 | android:minHeight="72dp"> |
Alexandre Lision | e1c96db | 2013-10-04 14:34:21 -0400 | [diff] [blame] | 27 | |
Adrien Béraud | 7f80a00 | 2015-12-09 17:56:40 -0500 | [diff] [blame] | 28 | <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" |
| 36 | android:scaleType="centerCrop" /> |
| 37 | |
| 38 | <TextView |
| 39 | android:id="@+id/display_name" |
| 40 | android:layout_width="wrap_content" |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 41 | android:layout_height="wrap_content" |
Adrien Béraud | 7f80a00 | 2015-12-09 17:56:40 -0500 | [diff] [blame] | 42 | android:layout_centerVertical="true" |
| 43 | android:layout_toRightOf="@+id/photo" |
| 44 | android:gravity="center_vertical" |
| 45 | android:textColor="@color/text_color_primary" |
| 46 | android:textIsSelectable="false" |
| 47 | android:textSize="16sp" |
| 48 | android:layout_toLeftOf="@+id/quick_call" |
| 49 | android:layout_toStartOf="@+id/quick_call" /> |
Alexandre Lision | e1c96db | 2013-10-04 14:34:21 -0400 | [diff] [blame] | 50 | |
Adrien Béraud | 7f80a00 | 2015-12-09 17:56:40 -0500 | [diff] [blame] | 51 | <ImageButton |
| 52 | android:id="@+id/quick_call" |
| 53 | android:layout_width="wrap_content" |
| 54 | android:layout_height="fill_parent" |
| 55 | android:layout_alignParentEnd="true" |
| 56 | android:layout_alignParentRight="true" |
| 57 | 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éraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 64 | |
Adrien Béraud | 7f80a00 | 2015-12-09 17:56:40 -0500 | [diff] [blame] | 65 | </RelativeLayout> |