Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Populating header and row dynamically #42

Closed
dimitrireef opened this issue Jan 23, 2015 · 2 comments
Closed

Populating header and row dynamically #42

dimitrireef opened this issue Jan 23, 2015 · 2 comments

Comments

@dimitrireef
Copy link

Hello how can i inject the items below inside SectionAdapter ?

    List<Item> items = new ArrayList<Item>();
    items.add(new Header("Header 1"));
    items.add(new ListItem("Text 1", "Rabble rabble"));
    items.add(new ListItem("Text 2", "Rabble rabble"));
    items.add(new ListItem("Text 3", "Rabble rabble"));
    items.add(new ListItem("Text 4", "Rabble rabble"));

    items.add(new Header("Header 2"));
    items.add(new ListItem("Text 5", "Rabble rabble"));
    items.add(new ListItem("Text 6", "Rabble rabble"));
    items.add(new ListItem("Text 7", "Rabble rabble"));
    items.add(new ListItem("Text 8", "Rabble rabble"));
    items.add(new ListItem("Text 9", "Rabble rabble"));
    items.add(new ListItem("Text 10", "Rabble rabble"));
@tokou
Copy link
Collaborator

tokou commented Jan 23, 2015

HeaderListView is based on Android's ListView that uses the Adapter mechanism to get populated. Please refer to http://developer.android.com/reference/android/widget/BaseAdapter.html for more information.

@tokou tokou closed this as completed Jan 23, 2015
@dimitrireef
Copy link
Author

tried several methods but still unable to populate dynamic header and rows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants