use of it.neokree.materialnavigationdrawer.elements.MaterialSubheader in project MaterialNavigationDrawer by neokree.
the class MaterialNavigationDrawer method addSubheader.
public void addSubheader(CharSequence title) {
MaterialSubheader subheader = new MaterialSubheader(this);
subheader.setTitle(title);
subheader.setTitleFont(fontManager.getRobotoRegular());
subheaderList.add(subheader);
sections.addView(subheader.getView());
// add the element to the list
elementsList.add(new Element(Element.TYPE_SUBHEADER, subheader));
}
Aggregations