blob: 650ce1482dbce45b549c5f528728d12e72d32fc2 [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
Alexandre Lision691a1d62013-11-12 10:06:27 -050034<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
Alexandre Savard65077932012-09-18 14:08:40 -040035 android:layout_width="match_parent"
Alexandre Lision691a1d62013-11-12 10:06:27 -050036 android:layout_height="match_parent" >
Alexandre Lisione1c96db2013-10-04 14:34:21 -040037
38 <RelativeLayout
Alexandre Lisione1c96db2013-10-04 14:34:21 -040039 android:layout_width="match_parent"
40 android:layout_height="match_parent"
Alexandre Lision691a1d62013-11-12 10:06:27 -050041 android:background="@color/sfl_action_blue"
42 android:descendantFocusability="blocksDescendants" >
Alexandre Lisione1c96db2013-10-04 14:34:21 -040043
44 <LinearLayout
Alexandre Lision691a1d62013-11-12 10:06:27 -050045 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 Lisione1c96db2013-10-04 14:34:21 -040050 android:layout_centerVertical="true"
Alexandre Lision691a1d62013-11-12 10:06:27 -050051 android:orientation="horizontal"
52 android:weightSum="6" >
Alexandre Lisione1c96db2013-10-04 14:34:21 -040053
54 <ImageButton
Alexandre Lision691a1d62013-11-12 10:06:27 -050055 android:id="@+id/quick_starred"
56 android:layout_width="0dp"
57 android:layout_height="match_parent"
58 android:layout_weight="1"
Alexandre Lisione1c96db2013-10-04 14:34:21 -040059 android:background="@null"
Alexandre Lision691a1d62013-11-12 10:06:27 -050060 android:contentDescription="@string/contact_quick_starred_description"
61 android:src="@drawable/ic_action_not_important" />
Alexandre Lisione1c96db2013-10-04 14:34:21 -040062
63 <ImageButton
Alexandre Lision691a1d62013-11-12 10:06:27 -050064 android:id="@+id/quick_edit"
65 android:layout_width="0dp"
66 android:layout_height="match_parent"
67 android:layout_weight="1"
Alexandre Lisione1c96db2013-10-04 14:34:21 -040068 android:background="@null"
Alexandre Lision691a1d62013-11-12 10:06:27 -050069 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 Lisione1c96db2013-10-04 14:34:21 -040085 </LinearLayout>
Alexandre Lision691a1d62013-11-12 10:06:27 -050086
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 Lisione1c96db2013-10-04 14:34:21 -0400140 </RelativeLayout>
alisiond295ec22013-05-17 10:12:13 -0400141
Alexandre Lision691a1d62013-11-12 10:06:27 -0500142</LinearLayout>