linphone-android/res/layout/history_cell.xml
2018-07-16 15:43:56 +02:00

117 lines
No EOL
3.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorH"
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"
android:layout_width="match_parent"
android:layout_height="23.3dp"
android:background="@color/colorN"
android:gravity="center_horizontal"
android:textColor="#ffffff"
android:textSize="13.3sp"/>
</LinearLayout>
<RelativeLayout
android:id="@+id/viewHolder"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="@color/colorH"
android:gravity="center_vertical">
<ImageView
android:id="@+id/detail"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:layout_margin="10dp"
android:adjustViewBounds="true"
android:contentDescription="@string/content_description_detail"
android:src="@drawable/list_detail"/>
<CheckBox
android:id="@+id/delete"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:layout_centerInParent="true"
android:button="@drawable/checkbox"
android:contentDescription="@string/content_description_delete"
android:paddingRight="5dp"
android:visibility="gone"/>
<RelativeLayout
android:id="@+id/history_click"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_toLeftOf="@id/detail"
android:gravity="center_vertical">
<RelativeLayout
android:id="@+id/avatar_layout"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center">
<ImageView
android:id="@+id/contact_picture"
android:layout_width="35dp"
android:layout_height="35dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="5dp"
android:adjustViewBounds="true"
android:contentDescription="@string/content_description_contact_picture"
android:src="@drawable/avatar_big_secure1"/>
<ImageView
android:id="@+id/mask"
android:layout_width="35dp"
android:layout_height="35dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="5dp"
android:adjustViewBounds="true"
android:src="@drawable/avatar_mask"
android:visibility="gone"/>
</RelativeLayout>
<ImageView
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginLeft="5dp"
android:layout_toRightOf="@id/avatar_layout"
android:adjustViewBounds="true"
android:contentDescription="@string/content_description_call_direction"
android:padding="7dp"
android:src="@drawable/call_status_incoming"/>
<TextView
android:id="@+id/sip_uri"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_toRightOf="@id/icon"
android:ellipsize="end"
android:lineSpacingExtra="13.3sp"
android:lines="1"
android:maxLines="1"
android:textColor="#000000"
android:textSize="20sp"/>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>