Add live_now_contact_item

This commit is contained in:
Alex Sytnyk 2018-06-21 13:10:36 +03:00
parent 797366c142
commit e920019da0
2 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,68 @@
<?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:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/card_bg_color">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/list_item_height"
android:layout_marginBottom="@dimen/list_item_bottom_margin"
android:background="?attr/selectableItemBackground"
android:gravity="center_vertical">
<ImageView
android:id="@+id/icon"
android:layout_width="@dimen/list_item_icon_size"
android:layout_height="@dimen/list_item_icon_size"
android:layout_marginEnd="@dimen/list_item_icon_margin_right"
android:layout_marginLeft="@dimen/list_item_icon_margin_left"
android:layout_marginRight="@dimen/list_item_icon_margin_right"
android:layout_marginStart="@dimen/list_item_icon_margin_left"
tools:src="@drawable/ic_launcher_background"/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/content_padding_standard"
android:layout_marginRight="@dimen/content_padding_standard"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:textAppearance="?attr/textAppearanceListItem"
android:textStyle="bold"
tools:text="Share location"/>
<TextView
android:id="@+id/description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:textAppearance="?attr/textAppearanceListItemSecondary"
tools:text="Live: 1 • All: 36"/>
</LinearLayout>
</LinearLayout>
</FrameLayout>
<include
android:id="@+id/bottom_shadow"
layout="@layout/card_bottom_divider"/>
</LinearLayout>

View file

@ -23,6 +23,7 @@
<dimen name="list_item_icon_margin_right">20dp</dimen> <dimen name="list_item_icon_margin_right">20dp</dimen>
<dimen name="list_item_content_margin">64dp</dimen> <dimen name="list_item_content_margin">64dp</dimen>
<dimen name="list_item_bottom_margin">3dp</dimen>
<dimen name="card_divider_bottom_margin">6dp</dimen> <dimen name="card_divider_bottom_margin">6dp</dimen>