一個Android模板material design導航抽屜:android-material-drawer-template

android-material-drawer-template是一個Android模板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 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

一個Android模板material design導航抽屜:android-material-drawer-template

項目主頁:http://www.baiduhome.net/lib/view/home/1416018928648

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!