app/src/main/res/layout/contactlistcontact.xml
author Frederic Barthelery <da_risk@beem-project.com>
Fri, 13 Nov 2015 17:52:28 +0100
changeset 1068 51bf3e7db33a
parent 1040 197a85a35cba
permissions -rw-r--r--
Avatar: Remove Apache HttpClientAvatarRetriever which will be deprecated in android-6.0 We can use the standart java.net.http avatar retriever implementation.

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" android:paddingLeft="10dp"
    android:paddingRight="10dp" android:paddingTop="8dp"
    android:paddingBottom="8dip" >
    <ImageView android:id="@+id/avatar"
	android:layout_width="48dip" android:layout_height="48dip"
	android:layout_alignParentLeft="true"
	android:layout_alignParentTop="true"
	/>
    <TextView android:id="@+id/contactlistpseudo"
	android:layout_width="fill_parent" android:layout_height="wrap_content"
	android:layout_alignParentTop="true"
	android:layout_toRightOf="@id/avatar"
	android:singleLine="true"
	android:maxLines="1"
	android:paddingLeft="10dp"
	android:textAppearance="?android:attr/textAppearanceMedium"
	android:textStyle="bold" />

    <TextView android:id="@+id/contactlistmsgperso"
	android:layout_width="fill_parent" android:layout_height="wrap_content"
	android:layout_below="@id/contactlistpseudo"
	android:layout_toRightOf="@id/avatar"
	android:paddingLeft="10dp" android:singleLine="true"
	android:maxLines="1" android:linksClickable="false" android:autoLink="all"
	android:scrollHorizontally="true" android:textColorLink="@color/white"
	android:textAppearance="?android:attr/textAppearanceSmall"
	/>
</RelativeLayout>