Search in sources :

Example 6 with MaterialSection

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

Example 7 with MaterialSection

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

Example 8 with MaterialSection

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

Example 9 with MaterialSection

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

Example 10 with MaterialSection

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

Aggregations

MaterialSection (it.neokree.materialnavigationdrawer.elements.MaterialSection)18 MaterialAccount (it.neokree.materialnavigationdrawer.elements.MaterialAccount)2 SuppressLint (android.annotation.SuppressLint)1 Intent (android.content.Intent)1 Resources (android.content.res.Resources)1 TypedArray (android.content.res.TypedArray)1 Point (android.graphics.Point)1 ColorDrawable (android.graphics.drawable.ColorDrawable)1 DrawerLayout (android.support.v4.widget.DrawerLayout)1 TypedValue (android.util.TypedValue)1 View (android.view.View)1 ViewTreeObserver (android.view.ViewTreeObserver)1 Window (android.view.Window)1 ImageView (android.widget.ImageView)1 LinearLayout (android.widget.LinearLayout)1 RelativeLayout (android.widget.RelativeLayout)1 TextView (android.widget.TextView)1 FragmentButton (it.neokree.example.mockedFragments.FragmentButton)1 FragmentIndex (it.neokree.example.mockedFragments.FragmentIndex)1 MaterialSectionListener (it.neokree.materialnavigationdrawer.elements.listeners.MaterialSectionListener)1