Skip to content

Instantly share code, notes, and snippets.

@budioktaviyan
Created December 26, 2016 10:49
Show Gist options
  • Save budioktaviyan/9d2e0e25307eaeb2f977241a773bcfa7 to your computer and use it in GitHub Desktop.
Save budioktaviyan/9d2e0e25307eaeb2f977241a773bcfa7 to your computer and use it in GitHub Desktop.
Item Home
<?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:padding="8dp">
<ImageView
android:id="@+id/iv_home"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:contentDescription="@string/app_name"
android:scaleType="centerCrop"
android:src="@mipmap/ic_account_circle" />
<TextView
android:id="@+id/tv_home"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_margin="8dp"
android:layout_toEndOf="@+id/iv_home"
android:layout_toRightOf="@+id/iv_home"
android:gravity="start"
android:lineSpacingExtra="2sp"
android:textColor="@color/colorPrimaryDark"
android:textSize="16sp" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment