blob: e4984121ee105d47763cc1b08ab998dab817c4e1 [file] [log] [blame]
Adrien Béraudffd32412012-08-07 18:39:23 -04001<?xml version="1.0" encoding="utf-8"?>
alisiond295ec22013-05-17 10:12:13 -04002<!--
Alexandre Lision8b9d8e82013-10-04 09:21:27 -04003Copyright (C) 2004-2013 Savoir-Faire Linux Inc.
Adrien Béraudffd32412012-08-07 18:39:23 -04004
Alexandre Lision8b9d8e82013-10-04 09:21:27 -04005Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
6 Adrien Beraud <adrien.beraud@gmail.com>
Adrien Béraudffd32412012-08-07 18:39:23 -04007
8This program is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 3 of the License, or
11(at your option) any later version.
12
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
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
22Additional permission under GNU GPL version 3 section 7:
23
24If you modify this program, or any covered work, by linking or
25combining it with the OpenSSL project's OpenSSL library (or a
26modified version of that library), containing parts covered by the
27terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
28grants you additional permission to convey the resulting work.
29Corresponding Source for a non-source form of such a combination
30shall include the source code for the parts of OpenSSL used as well
31as that of the covered work.
Alexandre Savard65077932012-09-18 14:08:40 -040032-->
alisiond295ec22013-05-17 10:12:13 -040033
34<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
Alexandre Savard65077932012-09-18 14:08:40 -040035 android:layout_width="match_parent"
Alexandre Lisionc59685a2013-10-04 16:36:36 -040036 android:layout_height="match_parent"
37 android:background="@color/sfl_another_blue" >
alisiond295ec22013-05-17 10:12:13 -040038
Alexandre Lision8b9d8e82013-10-04 09:21:27 -040039 <LinearLayout
Alexandre Lisione1c96db2013-10-04 14:34:21 -040040 android:id="@+id/contact_underview"
41 android:layout_width="match_parent"
Alexandre Lisionc59685a2013-10-04 16:36:36 -040042 android:layout_height="match_parent"
43 android:layout_alignParentBottom="true"
44 android:layout_alignParentTop="true"
Alexandre Lision8b9d8e82013-10-04 09:21:27 -040045 android:layout_centerVertical="true"
Alexandre Lisione1c96db2013-10-04 14:34:21 -040046 android:orientation="horizontal"
Alexandre Lisione1c96db2013-10-04 14:34:21 -040047 android:weightSum="6" >
alisiond295ec22013-05-17 10:12:13 -040048
Alexandre Lisione1c96db2013-10-04 14:34:21 -040049 <ImageButton
50 android:id="@+id/quick_starred"
51 android:layout_width="0dp"
52 android:layout_height="match_parent"
Alexandre Lisione1c96db2013-10-04 14:34:21 -040053 android:layout_weight="1"
54 android:background="@null"
Alexandre Lisionc59685a2013-10-04 16:36:36 -040055 android:contentDescription="@string/contact_quick_starred_description"
Alexandre Lisione1c96db2013-10-04 14:34:21 -040056 android:src="@drawable/ic_action_not_important" />
57
58 <ImageButton
59 android:id="@+id/quick_edit"
60 android:layout_width="0dp"
61 android:layout_height="match_parent"
Alexandre Lisione1c96db2013-10-04 14:34:21 -040062 android:layout_weight="1"
63 android:background="@null"
Alexandre Lisionc59685a2013-10-04 16:36:36 -040064 android:contentDescription="@string/contact_quick_edit_description"
Alexandre Lisione1c96db2013-10-04 14:34:21 -040065 android:src="@drawable/ic_action_edit" />
66
67 <ImageButton
68 android:id="@+id/quick_discard"
69 android:layout_width="0dp"
70 android:layout_height="match_parent"
Alexandre Lisione1c96db2013-10-04 14:34:21 -040071 android:layout_weight="1"
72 android:background="@null"
Alexandre Lisionc59685a2013-10-04 16:36:36 -040073 android:contentDescription="@string/contact_quick_discard_description"
Alexandre Lisione1c96db2013-10-04 14:34:21 -040074 android:src="@drawable/ic_action_discard" />
75
76 <Space
77 android:layout_width="0dp"
78 android:layout_height="match_parent"
79 android:layout_weight="3" />
80 </LinearLayout>
81
82 <RelativeLayout
83 android:id="@+id/contactview"
84 android:layout_width="match_parent"
85 android:layout_height="match_parent"
86 android:background="@drawable/item_contact_selector"
87 android:descendantFocusability="blocksDescendants" >
Alexandre Lision8b9d8e82013-10-04 09:21:27 -040088
89 <ImageView
Alexandre Lisione1c96db2013-10-04 14:34:21 -040090 android:id="@+id/photo"
91 android:layout_width="70dp"
92 android:layout_height="70dp"
93 android:contentDescription="@string/contact_picture_description"
94 android:scaleType="centerCrop" />
95
96 <TextView
97 android:id="@+id/display_name"
Alexandre Lision8b9d8e82013-10-04 09:21:27 -040098 android:layout_width="wrap_content"
99 android:layout_height="wrap_content"
Alexandre Lisione1c96db2013-10-04 14:34:21 -0400100 android:layout_alignBottom="@+id/photo"
101 android:layout_alignTop="@+id/photo"
102 android:layout_marginLeft="15dp"
103 android:layout_toRightOf="@+id/photo"
104 android:gravity="center_vertical"
105 android:textAppearance="?android:attr/textAppearanceMedium"
106 android:textColor="@color/white"
107 android:textSize="14sp" />
108
109 <LinearLayout
110 android:layout_width="wrap_content"
111 android:layout_height="wrap_content"
112 android:layout_alignParentRight="true"
113 android:layout_centerVertical="true"
114 android:divider="@drawable/divider"
115 android:showDividers="middle" >
116
117 <ImageButton
118 android:id="@+id/quick_call"
119 android:layout_width="wrap_content"
120 android:layout_height="wrap_content"
121 android:layout_margin="5dp"
122 android:background="@null"
123 android:contentDescription="@string/contact_quick_call_description"
124 android:src="@drawable/ic_action_call" />
125
126 <ImageButton
127 android:id="@+id/quick_message"
128 android:layout_width="wrap_content"
129 android:layout_height="wrap_content"
130 android:layout_margin="5dp"
131 android:background="@null"
132 android:contentDescription="@string/contact_quick_msg_description"
133 android:src="@drawable/ic_action_chat" />
134 </LinearLayout>
135 </RelativeLayout>
alisiond295ec22013-05-17 10:12:13 -0400136
137</RelativeLayout>