kanytu/android-material-drawer-template
关于
适用于 Material Design 的 Android 导航抽屉模板
其他项目实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文android-material-drawer-template
NEW
I released a new template. You can install it on your Android Studio to create Material Design applications easier than ever. Check it out here: https://github.com/kanytu/Android-studio-material-template
DEPRECATED I'm not currently supporting this repository. Please check Android Studio template for an updated material template for Android Studio.
An Android template with navigation drawer for material design
Customization
- Change your drawer item on:
drawer_row.xml - Make sure you change
NavigationDrawerAdapterto populate theViewHolderwith the new xml layout. - If you want to set a different layout for the selected item refer to
onBindViewHoldermethod on theNavigationDrawerAdapter - If you want to display more information on each row, like an image for example, change the
NavigationItemand add what you need. Make sure you change it's constructor and edit also thegetMenu()method on the fragment.
Reminders
- Your activity must implement
NavigationDrawerCallbacks - You must call
NavigationDrawerFragment.setup()to setup the drawer. - You must
<include/>thetoolbar_default.xmlin all your activities's XML and set it to the supportActionBar withsetSupportActionBar(). Remember to extend the activity toActionBarActivity

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)

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

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

There are also two XML's for the navigation drawer. You can alternate between these two by changing: (...) inflater.inflate(R.layout.fragment_navigation_google, container, false); on NavigationDrawerFragment:43
fragment_navigation_drawer Normal navigation drawer with just a RecyclerView. fragment_navigation_google Navigation drawer with the same theme as Google apps
License
Copyright (c) 2014 Pedro Oliveira
Licensed under the Apache License, Version 2.0
探索相关项目
加载中…