alision | 73424b6 | 2013-04-26 11:49:18 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
Alexandre Lision | f3a2c9d | 2014-01-06 11:12:53 -0500 | [diff] [blame] | 3 | Copyright (C) 2004-2014 Savoir-Faire Linux Inc. |
alision | 73424b6 | 2013-04-26 11:49:18 -0400 | [diff] [blame] | 4 | |
Alexandre Lision | d5dbcdf | 2013-10-07 14:13:09 -0400 | [diff] [blame] | 5 | Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com> |
alision | 73424b6 | 2013-04-26 11:49:18 -0400 | [diff] [blame] | 6 | |
| 7 | This program is free software; you can redistribute it and/or modify |
| 8 | it under the terms of the GNU General Public License as published by |
| 9 | the Free Software Foundation; either version 3 of the License, or |
| 10 | (at your option) any later version. |
| 11 | |
| 12 | This program is distributed in the hope that it will be useful, |
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | GNU General Public License for more details. |
| 16 | |
| 17 | You should have received a copy of the GNU General Public License |
| 18 | along with this program; if not, write to the Free Software |
| 19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 20 | |
| 21 | Additional permission under GNU GPL version 3 section 7: |
| 22 | |
| 23 | If you modify this program, or any covered work, by linking or |
| 24 | combining it with the OpenSSL project's OpenSSL library (or a |
| 25 | modified version of that library), containing parts covered by the |
| 26 | terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc. |
| 27 | grants you additional permission to convey the resulting work. |
| 28 | Corresponding Source for a non-source form of such a combination |
| 29 | shall include the source code for the parts of OpenSSL used as well |
| 30 | as that of the covered work. |
| 31 | --> |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 32 | |
| 33 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 34 | android:id="@+id/contactview" |
alision | 73424b6 | 2013-04-26 11:49:18 -0400 | [diff] [blame] | 35 | android:layout_width="match_parent" |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 36 | android:layout_height="match_parent" |
Alexandre Lision | 72e3732 | 2013-11-04 17:14:11 -0500 | [diff] [blame] | 37 | android:background="@drawable/item_history_selector" |
| 38 | android:descendantFocusability="blocksDescendants" > |
alision | 73424b6 | 2013-04-26 11:49:18 -0400 | [diff] [blame] | 39 | |
Alexandre Lision | 2e52d39 | 2013-11-06 15:14:31 -0500 | [diff] [blame] | 40 | <ImageButton |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 41 | android:id="@+id/photo" |
| 42 | android:layout_width="70dp" |
| 43 | android:layout_height="70dp" |
Alexandre Lision | c2bd7b6 | 2013-09-30 10:45:00 -0400 | [diff] [blame] | 44 | android:layout_centerVertical="true" |
Alexandre Lision | 2e52d39 | 2013-11-06 15:14:31 -0500 | [diff] [blame] | 45 | android:background="@null" |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 46 | android:scaleType="centerCrop" /> |
alision | 73424b6 | 2013-04-26 11:49:18 -0400 | [diff] [blame] | 47 | |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 48 | <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 Lision | 2e52d39 | 2013-11-06 15:14:31 -0500 | [diff] [blame] | 53 | android:layout_toLeftOf="@+id/replay" |
Alexandre Lision | c2bd7b6 | 2013-09-30 10:45:00 -0400 | [diff] [blame] | 54 | android:layout_toRightOf="@+id/photo" |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 55 | android:paddingLeft="@dimen/padding_small" |
Alexandre Lision | c2bd7b6 | 2013-09-30 10:45:00 -0400 | [diff] [blame] | 56 | android:singleLine="true" |
Alexandre Lision | 1877f4f | 2013-11-07 09:30:41 -0500 | [diff] [blame] | 57 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
alision | 73424b6 | 2013-04-26 11:49:18 -0400 | [diff] [blame] | 58 | |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 59 | <TextView |
Alexandre Lision | 2e52d39 | 2013-11-06 15:14:31 -0500 | [diff] [blame] | 60 | android:id="@+id/date_start" |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 61 | android:layout_width="wrap_content" |
| 62 | android:layout_height="wrap_content" |
| 63 | android:layout_below="@+id/display_name" |
| 64 | android:layout_toRightOf="@+id/photo" |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 65 | android:paddingLeft="@dimen/padding_small" |
Alexandre Lision | 1877f4f | 2013-11-07 09:30:41 -0500 | [diff] [blame] | 66 | android:textAppearance="?android:attr/textAppearanceSmall" /> |
alision | 73424b6 | 2013-04-26 11:49:18 -0400 | [diff] [blame] | 67 | |
Alexandre Lision | 2e52d39 | 2013-11-06 15:14:31 -0500 | [diff] [blame] | 68 | <LinearLayout |
| 69 | android:layout_width="0dp" |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 70 | android:layout_height="wrap_content" |
Alexandre Lision | 2e52d39 | 2013-11-06 15:14:31 -0500 | [diff] [blame] | 71 | android:layout_alignParentBottom="true" |
| 72 | android:layout_alignParentRight="true" |
| 73 | android:layout_toRightOf="@+id/photo" |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 74 | android:paddingLeft="@dimen/padding_small" |
Alexandre Lision | 6da3bb9 | 2013-12-10 17:32:46 -0500 | [diff] [blame] | 75 | android:weightSum="2" > |
alision | 73424b6 | 2013-04-26 11:49:18 -0400 | [diff] [blame] | 76 | |
Alexandre Lision | 2e52d39 | 2013-11-06 15:14:31 -0500 | [diff] [blame] | 77 | <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 Lision | 1877f4f | 2013-11-07 09:30:41 -0500 | [diff] [blame] | 83 | android:textAppearance="?android:attr/textAppearanceSmall" /> |
alision | 907bde7 | 2013-06-20 14:40:37 -0400 | [diff] [blame] | 84 | |
Alexandre Lision | 2e52d39 | 2013-11-06 15:14:31 -0500 | [diff] [blame] | 85 | <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 Lision | 1877f4f | 2013-11-07 09:30:41 -0500 | [diff] [blame] | 91 | android:textAppearance="?android:attr/textAppearanceSmall" /> |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 92 | |
Alexandre Lision | 2e52d39 | 2013-11-06 15:14:31 -0500 | [diff] [blame] | 93 | </LinearLayout> |
alision | 907bde7 | 2013-06-20 14:40:37 -0400 | [diff] [blame] | 94 | |
Alexandre Lision | c2bd7b6 | 2013-09-30 10:45:00 -0400 | [diff] [blame] | 95 | <Button |
| 96 | android:id="@+id/replay" |
| 97 | android:layout_width="wrap_content" |
| 98 | android:layout_height="wrap_content" |
Alexandre Lision | 2e52d39 | 2013-11-06 15:14:31 -0500 | [diff] [blame] | 99 | android:layout_alignParentRight="true" |
| 100 | android:layout_alignParentTop="true" |
Alexandre Lision | c2bd7b6 | 2013-09-30 10:45:00 -0400 | [diff] [blame] | 101 | android:text="@string/hist_replay_button" |
Alexandre Lision | 1877f4f | 2013-11-07 09:30:41 -0500 | [diff] [blame] | 102 | android:textAppearance="?android:attr/textAppearanceSmall" |
Alexandre Lision | c2bd7b6 | 2013-09-30 10:45:00 -0400 | [diff] [blame] | 103 | android:visibility="gone" /> |
alision | 907bde7 | 2013-06-20 14:40:37 -0400 | [diff] [blame] | 104 | |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 105 | </RelativeLayout> |