use of it.neokree.materialnavigationdrawer.elements.MaterialSection in project MaterialNavigationDrawer by neokree.
the class MaterialNavigationDrawer method newSection.
@SuppressWarnings("unchecked")
public MaterialSection newSection(String title, Fragment target) {
MaterialSection section = new MaterialSection<Fragment>(this, MaterialSection.ICON_NO_ICON, rippleSupport, MaterialSection.TARGET_FRAGMENT);
section.setOnClickListener(this);
section.setTitle(title);
section.setTarget(target);
return section;
}
use of it.neokree.materialnavigationdrawer.elements.MaterialSection in project MaterialNavigationDrawer by neokree.
the class MaterialNavigationDrawer method newSection.
public MaterialSection newSection(String title, Bitmap icon, Intent target) {
MaterialSection section = new MaterialSection<Fragment>(this, MaterialSection.ICON_24DP, rippleSupport, MaterialSection.TARGET_ACTIVITY);
section.setOnClickListener(this);
section.setIcon(icon);
section.setTitle(title);
section.setTarget(target);
return section;
}
use of it.neokree.materialnavigationdrawer.elements.MaterialSection in project MaterialNavigationDrawer by neokree.
the class MaterialNavigationDrawer method newSection.
public MaterialSection newSection(String title, Drawable icon, Intent target) {
MaterialSection section = new MaterialSection<Fragment>(this, MaterialSection.ICON_24DP, rippleSupport, MaterialSection.TARGET_ACTIVITY);
section.setOnClickListener(this);
section.setIcon(icon);
section.setTitle(title);
section.setTarget(target);
return section;
}
use of it.neokree.materialnavigationdrawer.elements.MaterialSection in project MaterialNavigationDrawer by neokree.
the class MaterialNavigationDrawer method newSection.
@SuppressWarnings("unchecked")
public MaterialSection newSection(String title, Intent target) {
MaterialSection section = new MaterialSection<Fragment>(this, MaterialSection.ICON_NO_ICON, rippleSupport, MaterialSection.TARGET_ACTIVITY);
section.setOnClickListener(this);
section.setTitle(title);
section.setTarget(target);
return section;
}
use of it.neokree.materialnavigationdrawer.elements.MaterialSection in project MaterialNavigationDrawer by neokree.
the class MaterialNavigationDrawer method newSection.
public MaterialSection newSection(String title, Bitmap icon, Fragment target) {
MaterialSection section = new MaterialSection<Fragment>(this, MaterialSection.ICON_24DP, rippleSupport, MaterialSection.TARGET_FRAGMENT);
section.setOnClickListener(this);
section.setIcon(icon);
section.setTitle(title);
section.setTarget(target);
return section;
}
Aggregations