Skip to content

Instantly share code, notes, and snippets.

@simoales
Created December 18, 2016 15:09
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/645d259d838124d14778efb466af2c41 to your computer and use it in GitHub Desktop.
Save simoales/645d259d838124d14778efb466af2c41 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/imageDocIcon"
android:layout_width="36dp"
android:layout_height="36dp"
android:tint="@color/colorIcons"
android:src="@drawable/playlist_play" />
<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/imageDocIcon"
android:layout_toRightOf="@+id/imageDocIcon"
android:singleLine="true"
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