• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

kanytu/android-material-drawer-template: An Android template with navigation dra ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

kanytu/android-material-drawer-template

开源软件地址(OpenSource Url):

https://github.com/kanytu/android-material-drawer-template

开源编程语言(OpenSource Language):

Java 100.0%

开源软件介绍(OpenSource Introduction):

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 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


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

Android Arsenal

License

Copyright (c) 2014 Pedro Oliveira

Licensed under the Apache License, Version 2.0




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
alexcarpenter/material-jekyll-theme: Material Design inspired Jekyll Theme发布时间:2022-08-17
下一篇:
deprecated (Daniel Edeling) · GitHub发布时间:2022-08-17
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap