Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save franciscofranco/50f636b9049a60c517e1 to your computer and use it in GitHub Desktop.
Save franciscofranco/50f636b9049a60c517e1 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="56dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/drawer_icon"
android:layout_width="56dp"
android:layout_height="match_parent"
android:layout_gravity="center_vertical|start"
android:contentDescription="@null"
android:padding="16dp"
android:src="@drawable/ic_toolbar" />
<TextView
android:id="@+id/toolbar_title"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="16dp"
android:layout_weight="1"
android:gravity="center|start"
android:textColor="@android:color/white"
android:textSize="18sp" />
<ImageView
android:layout_width="56dp"
android:layout_height="match_parent"
android:layout_gravity="center|end"
android:contentDescription="@null"
android:padding="16dp"
android:src="@drawable/ic_menu_overflow" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment