use of butter.droid.tv.presenters.MorePresenter in project butter-android by butterproject.
the class TVOverviewFragment method setupMoreRow.
@Override
public void setupMoreRow() {
HeaderItem gridHeader = new HeaderItem(getString(R.string.more));
MorePresenter gridPresenter = new MorePresenter(requireContext());
ArrayObjectAdapter gridRowAdapter = new ArrayObjectAdapter(gridPresenter);
gridRowAdapter.add(new MorePresenter.MoreItem(R.id.more_item_settings, R.string.preferences, R.drawable.ic_settings));
rowsAdapter.add(new ListRow(gridHeader, gridRowAdapter));
}
use of butter.droid.tv.presenters.MorePresenter in project butter-android by butterproject.
the class TVOverviewFragment method addMoreOptionsAdapter.
private ArrayObjectAdapter addMoreOptionsAdapter() {
HeaderItem moreOptionsHeader = new HeaderItem(getString(R.string.more_movies));
MorePresenter morePresenter = new MorePresenter(requireContext());
ArrayObjectAdapter moreOptionsAdapter = new ArrayObjectAdapter(morePresenter);
rowsAdapter.add(new ListRow(moreOptionsHeader, moreOptionsAdapter));
return moreOptionsAdapter;
}
Aggregations