blob: 310d7e7d94c1451e3eadd4a2f240b7dd4c076cca [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
Alexandre Lision2e52d392013-11-06 15:14:31 -050040 <ImageButton
alisiond295ec22013-05-17 10:12:13 -040041 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"
Alexandre Lision2e52d392013-11-06 15:14:31 -050045 android:background="@null"
alision2ec64f92013-06-17 17:28:58 -040046 android:scaleType="centerCrop" />
alision73424b62013-04-26 11:49:18 -040047
alisiond295ec22013-05-17 10:12:13 -040048 <TextView
49 android:id="@+id/display_name"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:layout_alignParentTop="true"
Alexandre Lision2e52d392013-11-06 15:14:31 -050053 android:layout_toLeftOf="@+id/replay"
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040054 android:layout_toRightOf="@+id/photo"
alisiond295ec22013-05-17 10:12:13 -040055 android:paddingLeft="@dimen/padding_small"
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040056 android:singleLine="true"
Alexandre Lision1877f4f2013-11-07 09:30:41 -050057 android:textAppearance="?android:attr/textAppearanceMedium" />
alision73424b62013-04-26 11:49:18 -040058
alisiond295ec22013-05-17 10:12:13 -040059 <TextView
Alexandre Lision2e52d392013-11-06 15:14:31 -050060 android:id="@+id/date_start"
alisiond295ec22013-05-17 10:12:13 -040061 android:layout_width="wrap_content"
62 android:layout_height="wrap_content"
63 android:layout_below="@+id/display_name"
64 android:layout_toRightOf="@+id/photo"
alisiond295ec22013-05-17 10:12:13 -040065 android:paddingLeft="@dimen/padding_small"
Alexandre Lision1877f4f2013-11-07 09:30:41 -050066 android:textAppearance="?android:attr/textAppearanceSmall" />
alision73424b62013-04-26 11:49:18 -040067
Alexandre Lision2e52d392013-11-06 15:14:31 -050068 <LinearLayout
69 android:layout_width="0dp"
alisiond295ec22013-05-17 10:12:13 -040070 android:layout_height="wrap_content"
Alexandre Lision2e52d392013-11-06 15:14:31 -050071 android:layout_alignParentBottom="true"
72 android:layout_alignParentRight="true"
73 android:layout_toRightOf="@+id/photo"
alisiond295ec22013-05-17 10:12:13 -040074 android:paddingLeft="@dimen/padding_small"
Alexandre Lision6da3bb92013-12-10 17:32:46 -050075 android:weightSum="2" >
alision73424b62013-04-26 11:49:18 -040076
Alexandre Lision2e52d392013-11-06 15:14:31 -050077 <TextView
78 android:id="@+id/incomings"
79 android:layout_width="0dp"
80 android:layout_height="wrap_content"
81 android:layout_weight="1"
82 android:singleLine="true"
Alexandre Lision1877f4f2013-11-07 09:30:41 -050083 android:textAppearance="?android:attr/textAppearanceSmall" />
alision907bde72013-06-20 14:40:37 -040084
Alexandre Lision2e52d392013-11-06 15:14:31 -050085 <TextView
86 android:id="@+id/outgoings"
87 android:layout_width="0dp"
88 android:layout_height="wrap_content"
89 android:layout_weight="1"
90 android:singleLine="true"
Alexandre Lision1877f4f2013-11-07 09:30:41 -050091 android:textAppearance="?android:attr/textAppearanceSmall" />
alision2ec64f92013-06-17 17:28:58 -040092
Alexandre Lision2e52d392013-11-06 15:14:31 -050093 </LinearLayout>
alision907bde72013-06-20 14:40:37 -040094
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -040095 <Button
96 android:id="@+id/replay"
97 android:layout_width="wrap_content"
98 android:layout_height="wrap_content"
Alexandre Lision2e52d392013-11-06 15:14:31 -050099 android:layout_alignParentRight="true"
100 android:layout_alignParentTop="true"
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -0400101 android:text="@string/hist_replay_button"
Alexandre Lision1877f4f2013-11-07 09:30:41 -0500102 android:textAppearance="?android:attr/textAppearanceSmall"
Alexandre Lisionc2bd7b62013-09-30 10:45:00 -0400103 android:visibility="gone" />
alision907bde72013-06-20 14:40:37 -0400104
alisiond295ec22013-05-17 10:12:13 -0400105</RelativeLayout>