linphone-android/app/src/main/res/layout/contact_cell.xml

113 lines
No EOL
3.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/backgroundColor"
android:gravity="center_vertical"
android:orientation="vertical">
<LinearLayout
android:id="@+id/separator"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/separator_text"
style="@style/accent_colored_title_font"
android:layout_width="match_parent"
android:layout_height="40dp"
android:gravity="center" />
<ImageView
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/dividerColor" />
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_margin="5dp"
android:gravity="center_vertical">
<RelativeLayout
android:id="@+id/avatar"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center">
<include layout="@layout/contact_avatar" />
</RelativeLayout>
<CheckBox
android:id="@+id/delete"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerInParent="true"
android:button="@drawable/checkbox"
android:clickable="false"
android:contentDescription="@string/content_description_delete"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:visibility="gone" />
<ImageView
android:id="@+id/friendStatus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="20dp"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:src="@drawable/led_connected"
android:visibility="gone" />
<ImageView
android:id="@+id/friendLinphone"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_centerVertical="true"
android:layout_marginRight="10dp"
android:layout_toLeftOf="@id/delete"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:src="@drawable/linphone_user"
android:visibility="gone" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:layout_toLeftOf="@id/friendLinphone"
android:layout_toRightOf="@id/avatar">
<TextView
android:id="@+id/name"
style="@style/contact_name_list_cell_font"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:ellipsize="end"
android:lines="1"
android:maxLines="1" />
<TextView
android:id="@+id/contactOrganization"
style="@style/contact_organization_font"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:maxLines="1" />
</RelativeLayout>
</RelativeLayout>
</LinearLayout>