alision | 73424b6 | 2013-04-26 11:49:18 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2004-2012 Savoir-Faire Linux Inc. |
| 4 | |
| 5 | Author: Adrien Beraud <adrien.beraud@gmail.com> |
| 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" |
alision | 2cb9956 | 2013-05-30 17:02:20 -0400 | [diff] [blame] | 37 | android:background="@drawable/item_call_selector" > |
alision | 73424b6 | 2013-04-26 11:49:18 -0400 | [diff] [blame] | 38 | |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 39 | <ImageView |
| 40 | android:id="@+id/photo" |
| 41 | android:layout_width="70dp" |
| 42 | android:layout_height="70dp" |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 43 | android:scaleType="centerCrop" /> |
alision | 73424b6 | 2013-04-26 11:49:18 -0400 | [diff] [blame] | 44 | |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 45 | <TextView |
| 46 | android:id="@+id/display_name" |
| 47 | android:layout_width="wrap_content" |
| 48 | android:layout_height="wrap_content" |
| 49 | android:layout_alignParentTop="true" |
| 50 | android:layout_toRightOf="@+id/photo" |
| 51 | android:paddingLeft="@dimen/padding_small" |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 52 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
alision | 73424b6 | 2013-04-26 11:49:18 -0400 | [diff] [blame] | 53 | |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 54 | <TextView |
| 55 | android:id="@+id/duration" |
| 56 | android:layout_width="wrap_content" |
| 57 | android:layout_height="wrap_content" |
| 58 | android:layout_below="@+id/display_name" |
| 59 | android:layout_toRightOf="@+id/photo" |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 60 | android:paddingLeft="@dimen/padding_small" |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 61 | android:textAppearance="?android:attr/textAppearanceSmall" /> |
alision | 73424b6 | 2013-04-26 11:49:18 -0400 | [diff] [blame] | 62 | |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 63 | <TextView |
| 64 | android:id="@+id/date_start" |
| 65 | android:layout_width="wrap_content" |
| 66 | android:layout_height="wrap_content" |
| 67 | android:layout_below="@+id/display_name" |
| 68 | android:layout_toRightOf="@+id/duration" |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 69 | android:paddingLeft="@dimen/padding_small" |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 70 | android:textAppearance="?android:attr/textAppearanceSmall" /> |
alision | 73424b6 | 2013-04-26 11:49:18 -0400 | [diff] [blame] | 71 | |
alision | 907bde7 | 2013-06-20 14:40:37 -0400 | [diff] [blame] | 72 | <LinearLayout |
| 73 | android:layout_width="wrap_content" |
| 74 | android:layout_height="wrap_content" |
| 75 | android:layout_below="@+id/duration" |
| 76 | android:layout_toRightOf="@+id/photo" > |
| 77 | |
| 78 | <TextView |
| 79 | android:id="@+id/incomings" |
alision | 73424b6 | 2013-04-26 11:49:18 -0400 | [diff] [blame] | 80 | android:layout_width="wrap_content" |
| 81 | android:layout_height="wrap_content" |
alision | 907bde7 | 2013-06-20 14:40:37 -0400 | [diff] [blame] | 82 | android:paddingLeft="@dimen/padding_small" |
| 83 | android:textAppearance="?android:attr/textAppearanceSmall" /> |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 84 | |
alision | 907bde7 | 2013-06-20 14:40:37 -0400 | [diff] [blame] | 85 | <TextView |
| 86 | android:id="@+id/outgoings" |
| 87 | android:layout_width="wrap_content" |
| 88 | android:layout_height="wrap_content" |
| 89 | android:paddingLeft="@dimen/padding_small" |
| 90 | android:textAppearance="?android:attr/textAppearanceSmall" /> |
| 91 | |
| 92 | <TextView |
| 93 | android:id="@+id/missed" |
| 94 | android:layout_width="wrap_content" |
| 95 | android:layout_height="wrap_content" |
| 96 | android:paddingLeft="@dimen/padding_small" |
| 97 | android:textAppearance="?android:attr/textAppearanceSmall" /> |
alision | 50fa072 | 2013-06-25 17:29:44 -0400 | [diff] [blame] | 98 | |
| 99 | <Button |
| 100 | android:id="@+id/replay" |
| 101 | android:layout_width="wrap_content" |
| 102 | android:layout_height="wrap_content" |
| 103 | android:paddingLeft="@dimen/padding_small" |
| 104 | android:text="Replay" |
| 105 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 106 | android:visibility="gone" /> |
alision | 907bde7 | 2013-06-20 14:40:37 -0400 | [diff] [blame] | 107 | </LinearLayout> |
| 108 | |
| 109 | <ImageButton |
| 110 | android:id="@+id/action_call" |
| 111 | android:layout_width="wrap_content" |
| 112 | android:layout_height="wrap_content" |
| 113 | android:layout_alignParentRight="true" |
| 114 | android:layout_centerVertical="true" |
| 115 | android:background="#00000000" |
| 116 | android:src="@android:drawable/sym_action_call" /> |
alision | 73424b6 | 2013-04-26 11:49:18 -0400 | [diff] [blame] | 117 | |
alision | d295ec2 | 2013-05-17 10:12:13 -0400 | [diff] [blame] | 118 | </RelativeLayout> |