Skip to content

Instantly share code, notes, and snippets.

@simoales
Last active December 19, 2016 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simoales/c9be527eb684d175549bc90e102c8b09 to your computer and use it in GitHub Desktop.
Save simoales/c9be527eb684d175549bc90e102c8b09 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:padding="4dp">
<ImageView
android:id="@+id/imageCatIcon"
android:layout_width="36dp"
android:layout_height="36dp"
android:tint="@color/colorPrimary"
android:src="@drawable/tag_text_outline" />
<TextView
android:id="@+id/tvNote"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_margin="4dp"
android:layout_toEndOf="@+id/imageCatIcon"
android:layout_toRightOf="@+id/imageCatIcon"
android:text="Dummy Text"
android:textSize="18sp" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment