Back to project page MaterialNavigationDrawer.
The source code is released under:
Apache License
If you think the Android project MaterialNavigationDrawer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package it.neokree.materialnavigationdrawer.util; /*from w ww. j a v a 2 s . co m*/ import android.app.Activity; import android.support.v4.widget.DrawerLayout; import android.support.v7.app.ActionBarDrawerToggle; import android.support.v7.widget.Toolbar; import it.neokree.materialnavigationdrawer.elements.MaterialSection; /** * Created by neokree on 14/02/15. */ public class MaterialActionBarDrawerToggle<Fragment> extends ActionBarDrawerToggle { private MaterialSection<Fragment> requestedSection; private boolean request; public MaterialActionBarDrawerToggle(Activity activity, DrawerLayout drawerLayout, Toolbar toolbar, int openDrawerContentDescRes, int closeDrawerContentDescRes) { super(activity, drawerLayout, toolbar, openDrawerContentDescRes, closeDrawerContentDescRes); request = false; } public void addRequest(MaterialSection section) { request = true; requestedSection = section; } public void removeRequest() { request = false; requestedSection = null; } public boolean hasRequest() { return request; } public MaterialSection getRequestedSection() { return requestedSection; } }