blob: a1c01999c8896ed4b50c3b2c3d4a80551be558e2 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?><!--
Copyright (C) 2004-2016 Savoir-faire Linux Inc.
Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
Adrien Beraud <adrien.beraud@savoirfairelinux.com>
Romain Bertozzi <romain.bertozzi@savoirfairelinux.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/contactview"
android:layout_width="match_parent"
android:layout_height="72dp"
android:descendantFocusability="blocksDescendants"
android:minHeight="72dp">
<ImageView
android:id="@+id/photo"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:contentDescription="@string/contact_picture_description"
android:scaleType="centerCrop" />
<TextView
android:id="@+id/display_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toEndOf="@+id/photo"
android:layout_toLeftOf="@+id/quick_call"
android:layout_toRightOf="@+id/photo"
android:layout_toStartOf="@+id/quick_call"
android:gravity="start"
android:textAlignment="viewStart"
android:textColor="@color/text_color_primary"
android:textIsSelectable="false"
android:textSize="16sp" />
<ImageButton
android:id="@+id/quick_call"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/contact_quick_call_description"
android:padding="16dp"
android:src="@drawable/ic_call_white_24dp"
android:tint="@color/black" />
</RelativeLayout>