blob: 98bb0ecdf89819e70379c0656f0225c5be51ae84 [file] [log] [blame]
alision73424b62013-04-26 11:49:18 -04001<?xml version="1.0" encoding="utf-8"?>
2<!--
Alexandre Lisiond5dbcdf2013-10-07 14:13:09 -04003Copyright (C) 2004-2013 Savoir-Faire Linux Inc.
alision73424b62013-04-26 11:49:18 -04004
Alexandre Lisiond5dbcdf2013-10-07 14:13:09 -04005Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
alision73424b62013-04-26 11:49:18 -04006
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 3 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
21Additional permission under GNU GPL version 3 section 7:
22
23If you modify this program, or any covered work, by linking or
24combining it with the OpenSSL project's OpenSSL library (or a
25modified version of that library), containing parts covered by the
26terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
27grants you additional permission to convey the resulting work.
28Corresponding Source for a non-source form of such a combination
29shall include the source code for the parts of OpenSSL used as well
30as that of the covered work.
31-->
alisiond295ec22013-05-17 10:12:13 -040032
33<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
34 android:id="@+id/contactview"
alision73424b62013-04-26 11:49:18 -040035 android:layout_width="match_parent"
alisiond295ec22013-05-17 10:12:13 -040036 android:layout_height="match_parent"
Alexandre Lision72e37322013-11-04 17:14:11 -050037 android:background="@drawable/item_history_selector"
38 android:descendantFocusability="blocksDescendants" >
alision73424b62013-04-26 11:49:18 -040039
alisiond295ec22013-05-17 10:12:13 -040040 <ImageView
41 android:id="@+id/photo"
42 android:layout_width="70dp"
43 android:layout_height="70dp"
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040044 android:layout_centerVertical="true"
alision2ec64f92013-06-17 17:28:58 -040045 android:scaleType="centerCrop" />
alision73424b62013-04-26 11:49:18 -040046
alisiond295ec22013-05-17 10:12:13 -040047 <TextView
48 android:id="@+id/display_name"
49 android:layout_width="wrap_content"
50 android:layout_height="wrap_content"
51 android:layout_alignParentTop="true"
Alexandre Lisionde1ab2a2013-09-26 15:35:12 -040052 android:layout_toLeftOf="@+id/action_call"
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040053 android:layout_toRightOf="@+id/photo"
alisiond295ec22013-05-17 10:12:13 -040054 android:paddingLeft="@dimen/padding_small"
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040055 android:singleLine="true"
Alexandre Lisiond5dbcdf2013-10-07 14:13:09 -040056 android:textAppearance="?android:attr/textAppearanceMediumInverse" />
alision73424b62013-04-26 11:49:18 -040057
alisiond295ec22013-05-17 10:12:13 -040058 <TextView
59 android:id="@+id/duration"
60 android:layout_width="wrap_content"
61 android:layout_height="wrap_content"
62 android:layout_below="@+id/display_name"
63 android:layout_toRightOf="@+id/photo"
alisiond295ec22013-05-17 10:12:13 -040064 android:paddingLeft="@dimen/padding_small"
Alexandre Lisiond5dbcdf2013-10-07 14:13:09 -040065 android:textAppearance="?android:attr/textAppearanceSmallInverse" />
alision73424b62013-04-26 11:49:18 -040066
alisiond295ec22013-05-17 10:12:13 -040067 <TextView
68 android:id="@+id/date_start"
69 android:layout_width="wrap_content"
70 android:layout_height="wrap_content"
71 android:layout_below="@+id/display_name"
72 android:layout_toRightOf="@+id/duration"
alisiond295ec22013-05-17 10:12:13 -040073 android:paddingLeft="@dimen/padding_small"
Alexandre Lisiond5dbcdf2013-10-07 14:13:09 -040074 android:textAppearance="?android:attr/textAppearanceSmallInverse" />
alision73424b62013-04-26 11:49:18 -040075
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040076 <TextView
77 android:id="@+id/incomings"
alision907bde72013-06-20 14:40:37 -040078 android:layout_width="wrap_content"
79 android:layout_height="wrap_content"
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040080 android:layout_alignLeft="@+id/duration"
alision907bde72013-06-20 14:40:37 -040081 android:layout_below="@+id/duration"
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040082 android:paddingLeft="@dimen/padding_small"
Alexandre Lisiond5dbcdf2013-10-07 14:13:09 -040083 android:textAppearance="?android:attr/textAppearanceSmallInverse" />
alision907bde72013-06-20 14:40:37 -040084
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040085 <TextView
86 android:id="@+id/outgoings"
87 android:layout_width="wrap_content"
88 android:layout_height="wrap_content"
89 android:layout_alignLeft="@+id/duration"
90 android:layout_below="@+id/incomings"
91 android:paddingLeft="@dimen/padding_small"
Alexandre Lisiond5dbcdf2013-10-07 14:13:09 -040092 android:textAppearance="?android:attr/textAppearanceSmallInverse" />
alision2ec64f92013-06-17 17:28:58 -040093
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040094 <TextView
95 android:id="@+id/missed"
96 android:layout_width="wrap_content"
97 android:layout_height="wrap_content"
98 android:layout_alignLeft="@+id/duration"
99 android:layout_below="@+id/outgoings"
100 android:paddingLeft="@dimen/padding_small"
Alexandre Lisiond5dbcdf2013-10-07 14:13:09 -0400101 android:textAppearance="?android:attr/textAppearanceSmallInverse" />
alision907bde72013-06-20 14:40:37 -0400102
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -0400103 <Button
104 android:id="@+id/replay"
105 android:layout_width="wrap_content"
106 android:layout_height="wrap_content"
107 android:layout_alignBaseline="@+id/outgoings"
108 android:layout_margin="10dp"
109 android:layout_toRightOf="@+id/outgoings"
110 android:paddingLeft="@dimen/padding_small"
111 android:text="@string/hist_replay_button"
Alexandre Lisiond5dbcdf2013-10-07 14:13:09 -0400112 android:textAppearance="?android:attr/textAppearanceSmallInverse"
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -0400113 android:visibility="gone" />
alision907bde72013-06-20 14:40:37 -0400114
115 <ImageButton
116 android:id="@+id/action_call"
Alexandre Lisionde1ab2a2013-09-26 15:35:12 -0400117 android:layout_width="50dp"
118 android:layout_height="50dp"
alision907bde72013-06-20 14:40:37 -0400119 android:layout_alignParentRight="true"
120 android:layout_centerVertical="true"
Alexandre Lisionde1ab2a2013-09-26 15:35:12 -0400121 android:background="@drawable/call_button"
Alexandre Lisiond5dbcdf2013-10-07 14:13:09 -0400122 android:src="@drawable/ic_action_call" />
alision73424b62013-04-26 11:49:18 -0400123
alisiond295ec22013-05-17 10:12:13 -0400124</RelativeLayout>