androidx.leanback.widget.ObjectAdapter Java Examples

The following examples show how to use androidx.leanback.widget.ObjectAdapter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HorizontalGridPresenter.java    From jellyfin-androidtv with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) {
    if (DEBUG) Log.v(TAG, "onBindViewHolder " + item);
    mViewHolder = (ViewHolder) viewHolder;
    mViewHolder.mItemBridgeAdapter.setAdapter((ObjectAdapter) item);
    mViewHolder.getGridView().setAdapter(mViewHolder.mItemBridgeAdapter);
}
 
Example #2
Source File: CardListRow.java    From tv-samples with Apache License 2.0 4 votes vote down vote up
public CardListRow(HeaderItem header, ObjectAdapter adapter, CardRow cardRow) {
    super(header, adapter);
    setCardRow(cardRow);
}
 
Example #3
Source File: SearchFragment.java    From tv-samples with Apache License 2.0 4 votes vote down vote up
@Override
public ObjectAdapter getResultsAdapter() {
    return mRowsAdapter;
}
 
Example #4
Source File: GridFragment.java    From tv-samples with Apache License 2.0 4 votes vote down vote up
/**
 * Sets the object adapter for the fragment.
 */
public void setAdapter(ObjectAdapter adapter) {
    mAdapter = adapter;
    updateAdapter();
}
 
Example #5
Source File: GridFragment.java    From tv-samples with Apache License 2.0 4 votes vote down vote up
/**
 * Returns the object adapter.
 */
public ObjectAdapter getAdapter() {
    return mAdapter;
}
 
Example #6
Source File: SearchFragment.java    From tv-samples with Apache License 2.0 4 votes vote down vote up
@Override
public ObjectAdapter getResultsAdapter() {
    return mRowsAdapter;
}
 
Example #7
Source File: MyItemBridgeAdapter.java    From LeanbackTvSample with MIT License 4 votes vote down vote up
protected MyItemBridgeAdapter(ObjectAdapter adapter) {
    super(adapter, null);
}
 
Example #8
Source File: SearchProvider.java    From jellyfin-androidtv with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ObjectAdapter getResultsAdapter() {
    return mRowsAdapter;
}
 
Example #9
Source File: GridFragment.java    From jellyfin-androidtv with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Returns the object adapter.
 */
public ObjectAdapter getAdapter() {
    return mAdapter;
}
 
Example #10
Source File: ProviderSearchFragment.java    From xipl with Apache License 2.0 4 votes vote down vote up
@Override
public ObjectAdapter getResultsAdapter() {
    return (mRowsAdapter);
}
 
Example #11
Source File: SearchFragment.java    From androidtv-Leanback with Apache License 2.0 4 votes vote down vote up
@Override
public ObjectAdapter getResultsAdapter() {
    return mRowsAdapter;
}