blob: 0241fb866fa45811003d75d9215ba8e1a37321f1 [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 Lision8b9d8e82013-10-04 09:21:27 -040037 android:background="@drawable/item_history_selector" >
alision73424b62013-04-26 11:49:18 -040038
alisiond295ec22013-05-17 10:12:13 -040039 <ImageView
40 android:id="@+id/photo"
41 android:layout_width="70dp"
42 android:layout_height="70dp"
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040043 android:layout_centerVertical="true"
alision2ec64f92013-06-17 17:28:58 -040044 android:scaleType="centerCrop" />
alision73424b62013-04-26 11:49:18 -040045
alisiond295ec22013-05-17 10:12:13 -040046 <TextView
47 android:id="@+id/display_name"
48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content"
50 android:layout_alignParentTop="true"
Alexandre Lisionde1ab2a2013-09-26 15:35:12 -040051 android:layout_toLeftOf="@+id/action_call"
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040052 android:layout_toRightOf="@+id/photo"
alisiond295ec22013-05-17 10:12:13 -040053 android:paddingLeft="@dimen/padding_small"
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040054 android:singleLine="true"
Alexandre Lisiond5dbcdf2013-10-07 14:13:09 -040055 android:textAppearance="?android:attr/textAppearanceMediumInverse" />
alision73424b62013-04-26 11:49:18 -040056
alisiond295ec22013-05-17 10:12:13 -040057 <TextView
58 android:id="@+id/duration"
59 android:layout_width="wrap_content"
60 android:layout_height="wrap_content"
61 android:layout_below="@+id/display_name"
62 android:layout_toRightOf="@+id/photo"
alisiond295ec22013-05-17 10:12:13 -040063 android:paddingLeft="@dimen/padding_small"
Alexandre Lisiond5dbcdf2013-10-07 14:13:09 -040064 android:textAppearance="?android:attr/textAppearanceSmallInverse" />
alision73424b62013-04-26 11:49:18 -040065
alisiond295ec22013-05-17 10:12:13 -040066 <TextView
67 android:id="@+id/date_start"
68 android:layout_width="wrap_content"
69 android:layout_height="wrap_content"
70 android:layout_below="@+id/display_name"
71 android:layout_toRightOf="@+id/duration"
alisiond295ec22013-05-17 10:12:13 -040072 android:paddingLeft="@dimen/padding_small"
Alexandre Lisiond5dbcdf2013-10-07 14:13:09 -040073 android:textAppearance="?android:attr/textAppearanceSmallInverse" />
alision73424b62013-04-26 11:49:18 -040074
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040075 <TextView
76 android:id="@+id/incomings"
alision907bde72013-06-20 14:40:37 -040077 android:layout_width="wrap_content"
78 android:layout_height="wrap_content"
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040079 android:layout_alignLeft="@+id/duration"
alision907bde72013-06-20 14:40:37 -040080 android:layout_below="@+id/duration"
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040081 android:paddingLeft="@dimen/padding_small"
Alexandre Lisiond5dbcdf2013-10-07 14:13:09 -040082 android:textAppearance="?android:attr/textAppearanceSmallInverse" />
alision907bde72013-06-20 14:40:37 -040083
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040084 <TextView
85 android:id="@+id/outgoings"
86 android:layout_width="wrap_content"
87 android:layout_height="wrap_content"
88 android:layout_alignLeft="@+id/duration"
89 android:layout_below="@+id/incomings"
90 android:paddingLeft="@dimen/padding_small"
Alexandre Lisiond5dbcdf2013-10-07 14:13:09 -040091 android:textAppearance="?android:attr/textAppearanceSmallInverse" />
alision2ec64f92013-06-17 17:28:58 -040092
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040093 <TextView
94 android:id="@+id/missed"
95 android:layout_width="wrap_content"
96 android:layout_height="wrap_content"
97 android:layout_alignLeft="@+id/duration"
98 android:layout_below="@+id/outgoings"
99 android:paddingLeft="@dimen/padding_small"
Alexandre Lisiond5dbcdf2013-10-07 14:13:09 -0400100 android:textAppearance="?android:attr/textAppearanceSmallInverse" />
alision907bde72013-06-20 14:40:37 -0400101
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -0400102 <Button
103 android:id="@+id/replay"
104 android:layout_width="wrap_content"
105 android:layout_height="wrap_content"
106 android:layout_alignBaseline="@+id/outgoings"
107 android:layout_margin="10dp"
108 android:layout_toRightOf="@+id/outgoings"
109 android:paddingLeft="@dimen/padding_small"
110 android:text="@string/hist_replay_button"
Alexandre Lisiond5dbcdf2013-10-07 14:13:09 -0400111 android:textAppearance="?android:attr/textAppearanceSmallInverse"
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -0400112 android:visibility="gone" />
alision907bde72013-06-20 14:40:37 -0400113
114 <ImageButton
115 android:id="@+id/action_call"
Alexandre Lisionde1ab2a2013-09-26 15:35:12 -0400116 android:layout_width="50dp"
117 android:layout_height="50dp"
alision907bde72013-06-20 14:40:37 -0400118 android:layout_alignParentRight="true"
119 android:layout_centerVertical="true"
Alexandre Lisionde1ab2a2013-09-26 15:35:12 -0400120 android:background="@drawable/call_button"
Alexandre Lisiond5dbcdf2013-10-07 14:13:09 -0400121 android:src="@drawable/ic_action_call" />
alision73424b62013-04-26 11:49:18 -0400122
alisiond295ec22013-05-17 10:12:13 -0400123</RelativeLayout>