<?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:id="@+id/chip"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:layout_marginTop="2dp"
  android:layout_marginEnd="2dp"
  android:orientation="horizontal"
  tools:background="@color/md_background_dark">

    <ImageView
      android:id="@+id/chip_icon"
      android:layout_width="@dimen/chip_icon_size"
      android:layout_height="@dimen/chip_icon_size"
      android:layout_alignTop="@id/chip_text"
      android:layout_alignBottom="@id/chip_text"
      android:paddingStart="5dp"
      android:paddingEnd="0dp"
      android:layout_gravity="center_vertical"
      android:tint="@color/icon_tint_dark_alpha"
      tools:src="@drawable/ic_keyboard_arrow_up_black_24dp"
      tools:ignore="UseAppTint" />

    <TextView
      android:id="@+id/chip_text"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="center_vertical"
      android:layout_toEndOf="@id/chip_icon"
      android:textSize="14sp"
      android:maxLines="1"
      android:ellipsize="end"
      android:paddingBottom="2dp"
      android:paddingStart="2dp"
      android:paddingEnd="8dp"
      android:textColor="@color/white_60"
      tools:text="4 subtasks"/>

    <ImageView
      android:id="@+id/chip_background"
      android:src="@drawable/widget_chip_dark_bg"
      android:layout_alignParentStart="true"
      android:layout_alignParentTop="true"
      android:layout_alignBottom="@id/chip_text"
      android:layout_alignEnd="@id/chip_text"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" />

</RelativeLayout>