item_contact_action.xml 1.8 KB
Newer Older
1
<?xml version="1.0" encoding="utf-8"?>
2
3
4
5
6
7
8
9
10
11
12
13
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/call_entry"
    android:layout_width="match_parent"
    android:layout_height="56dp"
    android:background="?android:attr/selectableItemBackground"
    android:descendantFocusability="blocksDescendants"
    android:paddingLeft="16dp"
    android:paddingTop="8dp"
    android:paddingRight="16dp"
    android:paddingBottom="8dp">
14

15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    <TextView
        android:id="@+id/action_icon"
        android:layout_width="32dp"
        android:layout_height="32dp"
        android:layout_centerVertical="true"
        android:layout_marginStart="4dp"
        android:layout_marginTop="4dp"
        android:layout_marginEnd="20dp"
        android:layout_marginBottom="4dp"
        android:backgroundTint="@color/colorPrimary"
        android:gravity="center"
        android:scaleType="fitCenter"
        android:text=""
        android:textSize="24dp"
        android:textColor="@color/black"
        app:tint="@color/colorPrimary"
        tools:background="@drawable/baseline_call_24" />
32

33
34
    <TextView
        android:id="@+id/action_title"
35
        android:layout_width="match_parent"
36
37
38
39
40
41
42
43
44
45
46
47
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:layout_toEndOf="@id/action_icon"
        android:ellipsize="middle"
        android:gravity="start"
        android:marqueeRepeatLimit="marquee_forever"
        android:scrollHorizontally="true"
        android:singleLine="true"
        android:textAlignment="viewStart"
        android:textColor="@color/textColorPrimary"
        android:textSize="16sp"
        tools:text="Start Audio Call" />
48

49
</RelativeLayout>