75 lines
2.6 KiB
XML
75 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="100dp"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true">
|
|
|
|
<!-- content -->
|
|
<LinearLayout
|
|
android:id="@+id/content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginBottom="12dp"
|
|
android:layout_marginLeft="12dp"
|
|
android:layout_marginRight="12dp"
|
|
android:layout_marginTop="12dp"
|
|
android:background="@drawable/bg_chip_view_opened"
|
|
android:clickable="true"
|
|
android:elevation="6dp"
|
|
android:orientation="horizontal"
|
|
tools:targetApi="lollipop">
|
|
|
|
<!-- info -->
|
|
<LinearLayout
|
|
android:id="@+id/info_layout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginLeft="12dp"
|
|
android:layout_marginRight="12dp"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="16dp"
|
|
android:paddingTop="16dp">
|
|
|
|
<!-- name -->
|
|
<TextView
|
|
android:id="@+id/name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:scrollHorizontally="true"
|
|
android:text="sdfdsfdsfdgs"
|
|
android:textSize="16sp" />
|
|
|
|
<!-- info -->
|
|
<TextView
|
|
android:id="@+id/info"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:scrollHorizontally="true"
|
|
android:text="paul@gmail.com"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- delete button -->
|
|
<ImageButton
|
|
android:id="@+id/delete_button"
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
android:layout_gravity="center"
|
|
android:layout_marginRight="10dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:src="@drawable/ic_cancel_white_24dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |