Skip to content

Instantly share code, notes, and snippets.

@WillyShakes
Created March 8, 2018 11:59
Show Gist options
  • Save WillyShakes/924ca4b73c6ae22b97059e0baff1da35 to your computer and use it in GitHub Desktop.
Save WillyShakes/924ca4b73c6ae22b97059e0baff1da35 to your computer and use it in GitHub Desktop.
layout of our custom title view
<?xml version="1.0" encoding="utf-8"?>
<merge 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">
<TextView
android:id="@+id/title_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_marginStart="40dp"
android:layout_marginEnd="24dp"
android:textAllCaps="true"
android:textSize="20sp"
android:textColor="@color/blue"
android:visibility="visible"
tools:text="My beautiful Title" />
</merge>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment