mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-21 03:38:29 +00:00
115 lines
No EOL
4.6 KiB
XML
115 lines
No EOL
4.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<data>
|
|
<import type="android.view.View"/>
|
|
<variable
|
|
name="clickListener"
|
|
type="android.view.View.OnClickListener"/>
|
|
<variable
|
|
name="data"
|
|
type="org.linphone.contact.ContactSelectionData" />
|
|
</data>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp">
|
|
|
|
<RelativeLayout
|
|
android:onClick="@{clickListener}"
|
|
android:enabled="@{!data.isDisabled}"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center_vertical"
|
|
android:orientation="vertical"
|
|
android:padding="5dp">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/avatar"
|
|
android:layout_width="45dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true">
|
|
|
|
<ImageView
|
|
coilContact="@{data}"
|
|
android:layout_width="@dimen/contact_avatar_size"
|
|
android:layout_height="@dimen/contact_avatar_size"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:contentDescription="@null" />
|
|
|
|
<ImageView
|
|
android:visibility="@{data.hasLimeX3DHCapability ? View.VISIBLE : View.GONE, default=gone}"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:contentDescription="@string/content_description_contact_can_do_encryption"
|
|
android:src="@drawable/security_toggle_icon_green" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginLeft="5dp"
|
|
android:layout_marginRight="5dp"
|
|
android:layout_toLeftOf="@id/linphone_user"
|
|
android:layout_toRightOf="@id/avatar"
|
|
android:gravity="center_vertical"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
style="@style/contact_name_list_cell_font"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="top|left"
|
|
android:lines="1"
|
|
android:text="@{data.contact.name ?? data.displayName}" />
|
|
|
|
<TextView
|
|
style="@style/sip_uri_font"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:gravity="bottom|left"
|
|
android:lines="1"
|
|
android:text="@{data.sipUri}" />
|
|
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:visibility="@{data.linphoneUser ? View.VISIBLE : View.INVISIBLE}"
|
|
android:id="@+id/linphone_user"
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
android:layout_toLeftOf="@id/contact_is_select"
|
|
android:layout_centerVertical="true"
|
|
android:paddingRight="10dp"
|
|
android:contentDescription="@string/content_description_linphone_user"
|
|
android:src="@drawable/linphone_logo_tinted" />
|
|
|
|
<ImageView
|
|
android:visibility="@{data.isSelected ? View.VISIBLE : View.INVISIBLE}"
|
|
android:id="@+id/contact_is_select"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerInParent="true"
|
|
android:layout_gravity="right"
|
|
android:paddingRight="20dp"
|
|
android:contentDescription="@string/content_description_contact_selected"
|
|
android:src="@drawable/check_selected" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<View
|
|
android:visibility="@{data.isDisabled ? View.VISIBLE : View.GONE}"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/contact_disabled_color"/>
|
|
|
|
</FrameLayout>
|
|
|
|
</layout> |