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 | f3a2c9d | 2014-01-06 11:12:53 -0500 | [diff] [blame] | 3 | Copyright (C) 2004-2014 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 | |
Alexandre Lision | 691a1d6 | 2013-11-12 10:06:27 -0500 | [diff] [blame] | 34 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Alexandre Savard | 6507793 | 2012-09-18 14:08:40 -0400 | [diff] [blame] | 35 | android:layout_width="match_parent" |
Alexandre Lision | 691a1d6 | 2013-11-12 10:06:27 -0500 | [diff] [blame] | 36 | android:layout_height="match_parent" > |
Alexandre Lision | e1c96db | 2013-10-04 14:34:21 -0400 | [diff] [blame] | 37 | |
| 38 | <RelativeLayout |
Alexandre Lision | e1c96db | 2013-10-04 14:34:21 -0400 | [diff] [blame] | 39 | android:layout_width="match_parent" |
| 40 | android:layout_height="match_parent" |
Alexandre Lision | 691a1d6 | 2013-11-12 10:06:27 -0500 | [diff] [blame] | 41 | android:background="@color/sfl_action_blue" |
| 42 | android:descendantFocusability="blocksDescendants" > |
Alexandre Lision | e1c96db | 2013-10-04 14:34:21 -0400 | [diff] [blame] | 43 | |
| 44 | <LinearLayout |
Alexandre Lision | 691a1d6 | 2013-11-12 10:06:27 -0500 | [diff] [blame] | 45 | android:id="@+id/contact_underview" |
| 46 | android:layout_width="match_parent" |
| 47 | android:layout_height="match_parent" |
| 48 | android:layout_alignParentBottom="true" |
| 49 | android:layout_alignParentTop="true" |
Alexandre Lision | e1c96db | 2013-10-04 14:34:21 -0400 | [diff] [blame] | 50 | android:layout_centerVertical="true" |
Alexandre Lision | 691a1d6 | 2013-11-12 10:06:27 -0500 | [diff] [blame] | 51 | android:orientation="horizontal" |
| 52 | android:weightSum="6" > |
Alexandre Lision | e1c96db | 2013-10-04 14:34:21 -0400 | [diff] [blame] | 53 | |
| 54 | <ImageButton |
Alexandre Lision | 691a1d6 | 2013-11-12 10:06:27 -0500 | [diff] [blame] | 55 | android:id="@+id/quick_starred" |
| 56 | android:layout_width="0dp" |
| 57 | android:layout_height="match_parent" |
| 58 | android:layout_weight="1" |
Alexandre Lision | e1c96db | 2013-10-04 14:34:21 -0400 | [diff] [blame] | 59 | android:background="@null" |
Alexandre Lision | 691a1d6 | 2013-11-12 10:06:27 -0500 | [diff] [blame] | 60 | android:contentDescription="@string/contact_quick_starred_description" |
| 61 | android:src="@drawable/ic_action_not_important" /> |
Alexandre Lision | e1c96db | 2013-10-04 14:34:21 -0400 | [diff] [blame] | 62 | |
| 63 | <ImageButton |
Alexandre Lision | 691a1d6 | 2013-11-12 10:06:27 -0500 | [diff] [blame] | 64 | android:id="@+id/quick_edit" |
| 65 | android:layout_width="0dp" |
| 66 | android:layout_height="match_parent" |
| 67 | android:layout_weight="1" |
Alexandre Lision | e1c96db | 2013-10-04 14:34:21 -0400 | [diff] [blame] | 68 | android:background="@null" |
Alexandre Lision | 691a1d6 | 2013-11-12 10:06:27 -0500 | [diff] [blame] | 69 | android:contentDescription="@string/contact_quick_edit_description" |
| 70 | android:src="@drawable/ic_action_edit" /> |
| 71 | |
| 72 | <ImageButton |
| 73 | android:id="@+id/quick_discard" |
| 74 | android:layout_width="0dp" |
| 75 | android:layout_height="match_parent" |
| 76 | android:layout_weight="1" |
| 77 | android:background="@null" |
| 78 | android:contentDescription="@string/contact_quick_discard_description" |
| 79 | android:src="@drawable/ic_action_discard" /> |
| 80 | |
| 81 | <Space |
| 82 | android:layout_width="0dp" |
| 83 | android:layout_height="match_parent" |
| 84 | android:layout_weight="3" /> |
Alexandre Lision | e1c96db | 2013-10-04 14:34:21 -0400 | [diff] [blame] | 85 | </LinearLayout> |
Alexandre Lision | 691a1d6 | 2013-11-12 10:06:27 -0500 | [diff] [blame] | 86 | |
| 87 | <RelativeLayout |
| 88 | android:id="@+id/contactview" |
| 89 | android:layout_width="match_parent" |
| 90 | android:layout_height="match_parent" |
| 91 | android:background="@drawable/item_contact_selector" > |
| 92 | |
| 93 | <ImageView |
| 94 | android:id="@+id/photo" |
| 95 | android:layout_width="70dp" |
| 96 | android:layout_height="70dp" |
| 97 | android:contentDescription="@string/contact_picture_description" |
| 98 | android:scaleType="centerCrop" /> |
| 99 | |
| 100 | <TextView |
| 101 | android:id="@+id/display_name" |
| 102 | android:layout_width="wrap_content" |
| 103 | android:layout_height="wrap_content" |
| 104 | android:layout_alignBottom="@+id/photo" |
| 105 | android:layout_alignTop="@+id/photo" |
| 106 | android:layout_marginLeft="15dp" |
| 107 | android:layout_toRightOf="@+id/photo" |
| 108 | android:gravity="center_vertical" |
| 109 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 110 | android:textColor="@color/white" |
| 111 | android:textSize="14sp" /> |
| 112 | |
| 113 | <LinearLayout |
| 114 | android:layout_width="wrap_content" |
| 115 | android:layout_height="wrap_content" |
| 116 | android:layout_alignParentRight="true" |
| 117 | android:layout_centerVertical="true" |
| 118 | android:divider="@drawable/divider" |
| 119 | android:showDividers="middle" > |
| 120 | |
| 121 | <ImageButton |
| 122 | android:id="@+id/quick_call" |
| 123 | android:layout_width="wrap_content" |
| 124 | android:layout_height="wrap_content" |
| 125 | android:layout_margin="5dp" |
| 126 | android:background="@null" |
| 127 | android:contentDescription="@string/contact_quick_call_description" |
| 128 | android:src="@drawable/ic_action_call" /> |
| 129 | |
| 130 | <ImageButton |
| 131 | android:id="@+id/quick_message" |
| 132 | android:layout_width="wrap_content" |
| 133 | android:layout_height="wrap_content" |
| 134 | android:layout_margin="5dp" |
| 135 | android:background="@null" |
| 136 | android:contentDescription="@string/contact_quick_msg_description" |
| 137 | android:src="@drawable/ic_action_chat" /> |
| 138 | </LinearLayout> |
| 139 | </RelativeLayout> |
Alexandre Lision | e1c96db | 2013-10-04 14:34:21 -0400 | [diff] [blame] | 140 | </RelativeLayout> |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 141 | |
Alexandre Lision | 691a1d6 | 2013-11-12 10:06:27 -0500 | [diff] [blame] | 142 | </LinearLayout> |