Search in sources :

Example 1 with MaterialSubheader

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));
}
Also used : MaterialSubheader(it.neokree.materialnavigationdrawer.elements.MaterialSubheader) Element(it.neokree.materialnavigationdrawer.elements.Element)

Aggregations

Element (it.neokree.materialnavigationdrawer.elements.Element)1 MaterialSubheader (it.neokree.materialnavigationdrawer.elements.MaterialSubheader)1