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