Skip to content

Instantly share code, notes, and snippets.

@joansanfeliu
Created October 25, 2018 06:45
Show Gist options
  • Save joansanfeliu/8d3d7aaa87dd7c46de02a759e9612132 to your computer and use it in GitHub Desktop.
Save joansanfeliu/8d3d7aaa87dd7c46de02a759e9612132 to your computer and use it in GitHub Desktop.
Android Toolbar
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.AppBarLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:tools="http://schemas.android.com/tools"
tools:showIn="@layout/activity_main">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/background_dark"
android:minHeight="?attr/actionBarSize"
app:theme="@style/ThemeOverlay.AppCompat.Dark"
app:titleTextColor="@android:color/white" />
</android.support.design.widget.AppBarLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment