blob: 48076bcaa62ccb9256cc6810e933b4633120fab1 [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"
Alexandre Lisionbecb8032013-10-28 13:48:15 -040037 android:background="@color/sfl_another_blue"
38 android:descendantFocusability="blocksDescendants" >
alisiond295ec22013-05-17 10:12:13 -040039
Alexandre Lision8b9d8e82013-10-04 09:21:27 -040040 <LinearLayout
Alexandre Lisione1c96db2013-10-04 14:34:21 -040041 android:id="@+id/contact_underview"
42 android:layout_width="match_parent"
Alexandre Lisionc59685a2013-10-04 16:36:36 -040043 android:layout_height="match_parent"
44 android:layout_alignParentBottom="true"
45 android:layout_alignParentTop="true"
Alexandre Lision8b9d8e82013-10-04 09:21:27 -040046 android:layout_centerVertical="true"
Alexandre Lisione1c96db2013-10-04 14:34:21 -040047 android:orientation="horizontal"
Alexandre Lisione1c96db2013-10-04 14:34:21 -040048 android:weightSum="6" >
alisiond295ec22013-05-17 10:12:13 -040049
Alexandre Lisione1c96db2013-10-04 14:34:21 -040050 <ImageButton
51 android:id="@+id/quick_starred"
52 android:layout_width="0dp"
53 android:layout_height="match_parent"
Alexandre Lisione1c96db2013-10-04 14:34:21 -040054 android:layout_weight="1"
55 android:background="@null"
Alexandre Lisionc59685a2013-10-04 16:36:36 -040056 android:contentDescription="@string/contact_quick_starred_description"
Alexandre Lisione1c96db2013-10-04 14:34:21 -040057 android:src="@drawable/ic_action_not_important" />
58
59 <ImageButton
60 android:id="@+id/quick_edit"
61 android:layout_width="0dp"
62 android:layout_height="match_parent"
Alexandre Lisione1c96db2013-10-04 14:34:21 -040063 android:layout_weight="1"
64 android:background="@null"
Alexandre Lisionc59685a2013-10-04 16:36:36 -040065 android:contentDescription="@string/contact_quick_edit_description"
Alexandre Lisione1c96db2013-10-04 14:34:21 -040066 android:src="@drawable/ic_action_edit" />
67
68 <ImageButton
69 android:id="@+id/quick_discard"
70 android:layout_width="0dp"
71 android:layout_height="match_parent"
Alexandre Lisione1c96db2013-10-04 14:34:21 -040072 android:layout_weight="1"
73 android:background="@null"
Alexandre Lisionc59685a2013-10-04 16:36:36 -040074 android:contentDescription="@string/contact_quick_discard_description"
Alexandre Lisione1c96db2013-10-04 14:34:21 -040075 android:src="@drawable/ic_action_discard" />
76
77 <Space
78 android:layout_width="0dp"
79 android:layout_height="match_parent"
80 android:layout_weight="3" />
81 </LinearLayout>
82
83 <RelativeLayout
84 android:id="@+id/contactview"
85 android:layout_width="match_parent"
86 android:layout_height="match_parent"
Alexandre Lisionbecb8032013-10-28 13:48:15 -040087 android:background="@drawable/item_contact_selector" >
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>