use of org.videolan.vlc.gui.tv.CardPresenter in project vlc-android by videolan.
the class GridFragment method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mContext = getActivity();
VerticalGridPresenter gridPresenter = new VerticalGridPresenter();
gridPresenter.setNumberOfColumns(NUM_COLUMNS);
setGridPresenter(gridPresenter);
mAdapter = new ArrayObjectAdapter(new CardPresenter(mContext));
mAdapter.clear();
setAdapter(mAdapter);
}
use of org.videolan.vlc.gui.tv.CardPresenter in project vlc-android by videolan.
the class SortedBrowserFragment method updateList.
@Override
public void updateList() {
Activity activity = getActivity();
if (activity == null)
return;
mAdapter = new ArrayObjectAdapter(new ListRowPresenter());
setAdapter(mAdapter);
ArrayObjectAdapter adapter;
HeaderItem header;
synchronized (mMediaItemMap) {
if (mTempMap != null)
mMediaItemMap = mTempMap;
}
for (ListItem item : mMediaItemMap.values()) {
adapter = new ArrayObjectAdapter(new CardPresenter(activity));
header = new HeaderItem(0, item.Letter);
adapter.addAll(0, item.mediaList);
mAdapter.add(new ListRow(header, adapter));
}
mHandler.sendEmptyMessageDelayed(HIDE_LOADING, 3000);
}
use of org.videolan.vlc.gui.tv.CardPresenter in project vlc-android by GeoffreyMetais.
the class GridFragment method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mContext = getActivity();
VerticalGridPresenter gridPresenter = new VerticalGridPresenter();
gridPresenter.setNumberOfColumns(NUM_COLUMNS);
setGridPresenter(gridPresenter);
mAdapter = new ArrayObjectAdapter(new CardPresenter(mContext));
mAdapter.clear();
setAdapter(mAdapter);
}
Aggregations