Giter Site home page Giter Site logo

fazlurr / android-material-drawer-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kanytu/android-material-drawer-template

0.0 2.0 0.0 7.32 MB

An Android template with navigation drawer for material design

License: Apache License 2.0

Java 100.00%

android-material-drawer-template's Introduction

android-material-drawer-template

An Android template with navigation drawer for material design

Customization

  • Change your drawer item on: drawer_row.xml
  • Make sure you change NavigationDrawerAdapter to populate the ViewHolder with the new xml layout.
  • If you want to set a different layout for the selected item refer to onBindViewHolder method on the NavigationDrawerAdapter
  • If you want to display more information on each row, like an image for example, change the NavigationItem and add what you need. Make sure you change it's constructor and edit also the getMenu() method on the fragment.

Reminders

  • Your activity must implement NavigationDrawerCallbacks
  • You must call NavigationDrawerFragment.setup() to setup the drawer.
  • You must <include/> the toolbar_default.xml in all your activities's XML and set it to the supportActionBar with setSupportActionBar(). Remember to extend the activity to ActionBarActivity

NavigationDrawer

Note

There are three example XML's for you activities. All them with diferent approaches on the navigation drawer pattern:

activity_main.xml Navigation drawer bellow the toolbar. (Google Inbox style)

NavigationDrawer

activity_main_blacktoolbar Navigation drawer bellow the toolbar, toolbar transition to black (Google Play Store style)

NavigationDrawer

activity_main_topdrawer Navigation drawer on top of the toolbar (Gmail style)

NavigationDrawer

Android Arsenal

License

Copyright (c) 2014 Pedro Oliveira

Licensed under the Apache License, Version 2.0

android-material-drawer-template's People

Contributors

easycheese avatar kanytu avatar peavers avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.