Skip to content

Instantly share code, notes, and snippets.

@johnolafenwa
Created October 16, 2019 23:04
Show Gist options
  • Select an option

  • Save johnolafenwa/0f7c0daa5871f6fd7d65de395702a1d5 to your computer and use it in GitHub Desktop.

Select an option

Save johnolafenwa/0f7c0daa5871f6fd7d65de395702a1d5 to your computer and use it in GitHub Desktop.

Revisions

  1. johnolafenwa created this gist Oct 16, 2019.
    26 changes: 26 additions & 0 deletions activity_main.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    <?xml version="1.0" encoding="utf-8"?>
    <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity"
    >

    <android.support.design.widget.AppBarLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:theme="@style/AppTheme.AppBarOverlay">

    <android.support.v7.widget.Toolbar
    android:id="@+id/toolbar"
    android:layout_width="match_parent"
    android:layout_height="?attr/actionBarSize"
    android:background="?attr/colorPrimary"
    app:popupTheme="@style/AppTheme.PopupOverlay" />

    </android.support.design.widget.AppBarLayout>

    <include layout="@layout/content_main" />

    </android.support.design.widget.CoordinatorLayout>