Search in sources :

Example 21 with IHeader

use of eu.davidea.flexibleadapter.items.IHeader in project FlexibleAdapter by davideas.

the class HeadersSectionsTest method testGetHeaderOf.

@Test
public void testGetHeaderOf() throws Exception {
    mAdapter = new FlexibleAdapter<>(mItems);
    mAdapter.setDisplayHeadersAtStartUp(true);
    IHeader header = mAdapter.getHeaderOf(mItems.get(1));
    assertNotNull(header);
}
Also used : IHeader(eu.davidea.flexibleadapter.items.IHeader) Test(org.junit.Test)

Aggregations

IHeader (eu.davidea.flexibleadapter.items.IHeader)21 SuppressLint (android.annotation.SuppressLint)8 ISectionable (eu.davidea.flexibleadapter.items.ISectionable)8 Test (org.junit.Test)4 AbstractFlexibleItem (eu.davidea.flexibleadapter.items.AbstractFlexibleItem)3 IExpandable (eu.davidea.flexibleadapter.items.IExpandable)3 TodoListHeaderViewModel (de.djuelg.neuronizer.presentation.ui.flexibleadapter.TodoListHeaderViewModel)2 ArrayList (java.util.ArrayList)2 TodoListHeader (de.djuelg.neuronizer.domain.model.todolist.TodoListHeader)1 IFlexible (eu.davidea.flexibleadapter.items.IFlexible)1 AbstractItem (eu.davidea.samples.flexibleadapter.items.AbstractItem)1 ExpandableHeaderItem (eu.davidea.samples.flexibleadapter.items.ExpandableHeaderItem)1 HeaderItem (eu.davidea.samples.flexibleadapter.items.HeaderItem)1 InstagramHeaderItem (eu.davidea.samples.flexibleadapter.items.InstagramHeaderItem)1 StaggeredHeaderItem (eu.davidea.samples.flexibleadapter.items.StaggeredHeaderItem)1 List (java.util.List)1