Adrien Béraud | ffd3241 | 2012-08-07 18:39:23 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 2 | <!-- |
Alexandre Lision | 8b9d8e8 | 2013-10-04 09:21:27 -0400 | [diff] [blame^] | 3 | Copyright (C) 2004-2013 Savoir-Faire Linux Inc. |
Adrien Béraud | ffd3241 | 2012-08-07 18:39:23 -0400 | [diff] [blame] | 4 | |
Alexandre Lision | 8b9d8e8 | 2013-10-04 09:21:27 -0400 | [diff] [blame^] | 5 | Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com> |
| 6 | Adrien Beraud <adrien.beraud@gmail.com> |
Adrien Béraud | ffd3241 | 2012-08-07 18:39:23 -0400 | [diff] [blame] | 7 | |
| 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 |
| 10 | the Free Software Foundation; either version 3 of the License, or |
| 11 | (at your option) any later version. |
| 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 |
| 20 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 21 | |
| 22 | Additional permission under GNU GPL version 3 section 7: |
| 23 | |
| 24 | If you modify this program, or any covered work, by linking or |
| 25 | combining it with the OpenSSL project's OpenSSL library (or a |
| 26 | modified version of that library), containing parts covered by the |
| 27 | terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc. |
| 28 | grants you additional permission to convey the resulting work. |
| 29 | Corresponding Source for a non-source form of such a combination |
| 30 | shall include the source code for the parts of OpenSSL used as well |
| 31 | as that of the covered work. |
Alexandre Savard | 6507793 | 2012-09-18 14:08:40 -0400 | [diff] [blame] | 32 | --> |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 33 | |
| 34 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 35 | android:id="@+id/contactview" |
Alexandre Savard | 6507793 | 2012-09-18 14:08:40 -0400 | [diff] [blame] | 36 | android:layout_width="match_parent" |
Alexandre Lision | 8b9d8e8 | 2013-10-04 09:21:27 -0400 | [diff] [blame^] | 37 | android:layout_height="match_parent" |
| 38 | android:background="@drawable/item_contact_selector" > |
alision | 17052d4 | 2013-04-22 10:39:38 -0400 | [diff] [blame] | 39 | |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 40 | <ImageView |
| 41 | android:id="@+id/photo" |
| 42 | android:layout_width="70dp" |
| 43 | android:layout_height="70dp" |
Alexandre Lision | 8b9d8e8 | 2013-10-04 09:21:27 -0400 | [diff] [blame^] | 44 | android:scaleType="centerCrop" |
| 45 | android:contentDescription="@string/contact_picture_description" /> |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 46 | |
| 47 | <TextView |
| 48 | android:id="@+id/display_name" |
| 49 | android:layout_width="wrap_content" |
| 50 | android:layout_height="wrap_content" |
alision | 2cb9956 | 2013-05-30 17:02:20 -0400 | [diff] [blame] | 51 | android:layout_alignBottom="@+id/photo" |
Alexandre Lision | 8b9d8e8 | 2013-10-04 09:21:27 -0400 | [diff] [blame^] | 52 | android:layout_alignTop="@+id/photo" |
| 53 | android:layout_marginLeft="15dp" |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 54 | android:layout_toRightOf="@+id/photo" |
Alexandre Lision | 8b9d8e8 | 2013-10-04 09:21:27 -0400 | [diff] [blame^] | 55 | android:gravity="center_vertical" |
| 56 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 57 | android:textColor="@color/white" |
| 58 | android:textSize="14sp" /> |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 59 | |
Alexandre Lision | 8b9d8e8 | 2013-10-04 09:21:27 -0400 | [diff] [blame^] | 60 | <LinearLayout |
| 61 | android:layout_width="wrap_content" |
| 62 | android:layout_height="wrap_content" |
| 63 | android:layout_alignParentRight="true" |
| 64 | android:layout_centerVertical="true" |
| 65 | android:showDividers="middle" |
| 66 | android:divider="@drawable/divider" > |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 67 | |
Alexandre Lision | 8b9d8e8 | 2013-10-04 09:21:27 -0400 | [diff] [blame^] | 68 | <ImageView |
| 69 | android:id="@+id/quick_call" |
| 70 | android:layout_width="wrap_content" |
| 71 | android:layout_height="wrap_content" |
| 72 | android:background="@null" |
| 73 | android:layout_margin="5dp" |
| 74 | android:contentDescription="@string/contact_quick_call_description" |
| 75 | android:src="@drawable/ic_action_call" /> |
| 76 | |
| 77 | <ImageView |
| 78 | android:id="@+id/quick_message" |
| 79 | android:layout_width="wrap_content" |
| 80 | android:layout_height="wrap_content" |
| 81 | android:background="@null" |
| 82 | android:layout_margin="5dp" |
| 83 | android:contentDescription="@string/contact_quick_msg_description" |
| 84 | android:src="@drawable/ic_action_chat" /> |
| 85 | </LinearLayout> |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 86 | |
| 87 | </RelativeLayout> |