suggestion_command_item.xml 1.38 KB
Newer Older
1 2 3 4 5
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
6 7
    android:layout_marginBottom="4dp"
    android:layout_marginTop="4dp"
8
    android:background="@color/suggestion_background_color"
9 10
    android:orientation="horizontal"
    android:paddingTop="2dp">
11 12 13 14 15 16 17

    <TextView
        android:id="@+id/text_command_name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
18
        android:layout_marginStart="8dp"
19 20 21
        android:ellipsize="end"
        android:maxLines="1"
        android:textColor="@color/black"
22
        android:textSize="14sp"
23 24 25 26
        tools:text="/leave" />

    <TextView
        android:id="@+id/text_command_description"
27
        android:layout_width="match_parent"
28
        android:layout_height="wrap_content"
29
        android:layout_marginEnd="8dp"
30
        android:layout_marginStart="16dp"
31
        android:layout_toRightOf="@id/text_command_name"
32 33 34
        android:ellipsize="end"
        android:gravity="start"
        android:maxLines="1"
35
        android:textColor="@color/gray_material"
36
        android:textSize="14sp"
37 38 39
        tools:text="Leave a channel" />

</RelativeLayout>