Search in sources :

Example 1 with FullWidthDetailsOverviewRowPresenter

use of android.support.v17.leanback.widget.FullWidthDetailsOverviewRowPresenter in project vlc-android by videolan.

the class MediaItemDetailsFragment method buildDetails.

private void buildDetails() {
    Bundle extras = getActivity().getIntent().getExtras();
    mMedia = extras.getParcelable("item");
    boolean hasMedia = extras.containsKey("media");
    ClassPresenterSelector selector = new ClassPresenterSelector();
    final MediaWrapper media = hasMedia ? (MediaWrapper) extras.getParcelable("media") : new MediaWrapper(AndroidUtil.LocationToUri(mMedia.getLocation()));
    if (!hasMedia) {
        media.setDisplayTitle(mMedia.getTitle());
    }
    mMediaWrapper = media;
    setTitle(media.getTitle());
    final List<MediaWrapper> mediaList = (List<MediaWrapper>) VLCApplication.getData(SortedBrowserFragment.CURRENT_BROWSER_LIST);
    // Attach your media item details presenter to the row presenter:
    FullWidthDetailsOverviewRowPresenter rowPresenter = new FullWidthDetailsOverviewRowPresenter(new DetailsDescriptionPresenter());
    final Activity activity = getActivity();
    final DetailsOverviewRow detailsOverview = new DetailsOverviewRow(mMedia);
    final Action actionAdd = new Action(ID_FAVORITE_ADD, getString(R.string.favorites_add));
    final Action actionDelete = new Action(ID_FAVORITE_DELETE, getString(R.string.favorites_remove));
    rowPresenter.setBackgroundColor(ContextCompat.getColor(activity, R.color.orange500));
    rowPresenter.setOnActionClickedListener(new OnActionClickedListener() {

        @Override
        public void onActionClicked(Action action) {
            switch((int) action.getId()) {
                case ID_LISTEN:
                    PlaybackServiceFragment.registerPlaybackService(MediaItemDetailsFragment.this, MediaItemDetailsFragment.this);
                    break;
                case ID_PLAY:
                    TvUtil.playMedia(getActivity(), media);
                    getActivity().finish();
                    break;
                case ID_FAVORITE_ADD:
                    mDb.addNetworkFavItem(Uri.parse(mMedia.getLocation()), mMedia.getTitle(), mMedia.getArtworkUrl());
                    detailsOverview.removeAction(actionAdd);
                    detailsOverview.addAction(actionDelete);
                    mRowsAdapter.notifyArrayItemRangeChanged(0, mRowsAdapter.size());
                    Toast.makeText(VLCApplication.getAppContext(), R.string.favorite_added, Toast.LENGTH_SHORT).show();
                    break;
                case ID_FAVORITE_DELETE:
                    mDb.deleteNetworkFav(Uri.parse(mMedia.getLocation()));
                    detailsOverview.removeAction(actionDelete);
                    detailsOverview.addAction(actionAdd);
                    mRowsAdapter.notifyArrayItemRangeChanged(0, mRowsAdapter.size());
                    Toast.makeText(VLCApplication.getAppContext(), R.string.favorite_removed, Toast.LENGTH_SHORT).show();
                    break;
                case ID_BROWSE:
                    TvUtil.openMedia(getActivity(), media, null);
                    break;
                case ID_DL_SUBS:
                    MediaUtils.getSubs(getActivity(), media);
                    break;
                case ID_PLAY_ALL:
                    if (mediaList != null) {
                        int position = -1;
                        for (int i = 0; i < mediaList.size(); ++i) if (media.equals(mediaList.get(i)))
                            position = i;
                        Activity activity = getActivity();
                        MediaUtils.openList(activity, mediaList, position);
                        if (media.getType() == MediaWrapper.TYPE_AUDIO)
                            getActivity().startActivity(new Intent(activity, AudioPlayerActivity.class));
                        getActivity().finish();
                    }
                    break;
                case ID_PLAY_FROM_START:
                    VideoPlayerActivity.start(getActivity(), media.getUri(), true);
                    getActivity().finish();
                    break;
            }
        }
    });
    selector.addClassPresenter(DetailsOverviewRow.class, rowPresenter);
    selector.addClassPresenter(ListRow.class, new ListRowPresenter());
    mRowsAdapter = new ArrayObjectAdapter(selector);
    VLCApplication.runBackground(new Runnable() {

        @Override
        public void run() {
            final Bitmap cover = media.getType() == MediaWrapper.TYPE_AUDIO || media.getType() == MediaWrapper.TYPE_VIDEO ? AudioUtil.readCoverBitmap(mMedia.getArtworkUrl(), 512) : null;
            VLCApplication.runOnMainThread(new Runnable() {

                @Override
                public void run() {
                    if (isDetached())
                        return;
                    if (media.getType() == MediaWrapper.TYPE_DIR && FileUtils.canSave(media)) {
                        mDb = MediaDatabase.getInstance();
                        detailsOverview.setImageDrawable(ContextCompat.getDrawable(activity, TextUtils.equals(media.getUri().getScheme(), "file") ? R.drawable.ic_menu_folder_big : R.drawable.ic_menu_network_big));
                        detailsOverview.setImageScaleUpAllowed(true);
                        detailsOverview.addAction(new Action(ID_BROWSE, getString(R.string.browse_folder)));
                        if (mDb.networkFavExists(Uri.parse(mMedia.getLocation())))
                            detailsOverview.addAction(actionDelete);
                        else
                            detailsOverview.addAction(actionAdd);
                    } else if (media.getType() == MediaWrapper.TYPE_AUDIO) {
                        // Add images and action buttons to the details view
                        if (cover == null)
                            detailsOverview.setImageDrawable(ContextCompat.getDrawable(activity, R.drawable.ic_default_cone));
                        else
                            detailsOverview.setImageBitmap(getActivity(), cover);
                        detailsOverview.addAction(new Action(ID_PLAY, getString(R.string.play)));
                        detailsOverview.addAction(new Action(ID_LISTEN, getString(R.string.listen)));
                        if (mediaList != null && mediaList.contains(media))
                            detailsOverview.addAction(new Action(ID_PLAY_ALL, getString(R.string.play_all)));
                    } else if (media.getType() == MediaWrapper.TYPE_VIDEO) {
                        // Add images and action buttons to the details view
                        if (cover == null)
                            detailsOverview.setImageDrawable(ContextCompat.getDrawable(activity, R.drawable.ic_default_cone));
                        else
                            detailsOverview.setImageBitmap(getActivity(), cover);
                        detailsOverview.addAction(new Action(ID_PLAY, getString(R.string.play)));
                        detailsOverview.addAction(new Action(ID_PLAY_FROM_START, getString(R.string.play_from_start)));
                        if (FileUtils.canWrite(media.getUri()))
                            detailsOverview.addAction(new Action(ID_DL_SUBS, getString(R.string.download_subtitles)));
                        if (mediaList != null && mediaList.contains(media))
                            detailsOverview.addAction(new Action(ID_PLAY_ALL, getString(R.string.play_all)));
                    }
                    mRowsAdapter.add(detailsOverview);
                    setAdapter(mRowsAdapter);
                    if (cover != null)
                        mBackgroundManager.setBitmap(cover);
                }
            });
        }
    });
}
Also used : MediaWrapper(org.videolan.medialibrary.media.MediaWrapper) FullWidthDetailsOverviewRowPresenter(android.support.v17.leanback.widget.FullWidthDetailsOverviewRowPresenter) Action(android.support.v17.leanback.widget.Action) Bundle(android.os.Bundle) OnActionClickedListener(android.support.v17.leanback.widget.OnActionClickedListener) VideoPlayerActivity(org.videolan.vlc.gui.video.VideoPlayerActivity) AudioPlayerActivity(org.videolan.vlc.gui.tv.audioplayer.AudioPlayerActivity) Activity(android.app.Activity) Intent(android.content.Intent) ArrayObjectAdapter(android.support.v17.leanback.widget.ArrayObjectAdapter) ClassPresenterSelector(android.support.v17.leanback.widget.ClassPresenterSelector) DetailsOverviewRow(android.support.v17.leanback.widget.DetailsOverviewRow) Bitmap(android.graphics.Bitmap) ListRowPresenter(android.support.v17.leanback.widget.ListRowPresenter) List(java.util.List) AudioPlayerActivity(org.videolan.vlc.gui.tv.audioplayer.AudioPlayerActivity)

Example 2 with FullWidthDetailsOverviewRowPresenter

use of android.support.v17.leanback.widget.FullWidthDetailsOverviewRowPresenter in project ring-client-android by savoirfairelinux.

the class AboutDetailsFragment method setupUi.

private void setupUi() {
    Bundle extras = getActivity().getIntent().getExtras();
    Card.Type cardType = Card.Type.DEFAULT;
    if (extras != null && extras.containsKey("abouttype")) {
        int ordinal = extras.getInt("abouttype", 0);
        cardType = Card.Type.values()[ordinal];
    }
    IconCard card = IconCardHelper.getAboutCardByType(getActivity(), cardType);
    ClassPresenterSelector selector = new ClassPresenterSelector();
    FullWidthDetailsOverviewRowPresenter rowPresenter = new FullWidthDetailsOverviewRowPresenter(new AboutDetailsPresenter(getActivity())) {

        @Override
        protected RowPresenter.ViewHolder createRowViewHolder(ViewGroup parent) {
            // Customize Actionbar and Content by using custom colors.
            RowPresenter.ViewHolder viewHolder = super.createRowViewHolder(parent);
            View actionsView = viewHolder.view.findViewById(R.id.details_overview_actions_background);
            actionsView.setBackgroundColor(getActivity().getResources().getColor(R.color.color_primary_dark));
            View detailsView = viewHolder.view.findViewById(R.id.details_frame);
            detailsView.setBackgroundColor(getResources().getColor(R.color.color_primary_dark));
            return viewHolder;
        }
    };
    selector.addClassPresenter(DetailsOverviewRow.class, rowPresenter);
    selector.addClassPresenter(ListRow.class, new ListRowPresenter());
    ArrayObjectAdapter mRowsAdapter = new ArrayObjectAdapter(selector);
    Resources res = getActivity().getResources();
    DetailsOverviewRow detailsOverview = new DetailsOverviewRow(card);
    // Add images and action buttons to the details view
    detailsOverview.setImageDrawable(res.getDrawable(R.drawable.ic_logo_ring_white));
    mRowsAdapter.add(detailsOverview);
    setAdapter(mRowsAdapter);
    initializeBackground();
}
Also used : FullWidthDetailsOverviewRowPresenter(android.support.v17.leanback.widget.FullWidthDetailsOverviewRowPresenter) Bundle(android.os.Bundle) ViewGroup(android.view.ViewGroup) ArrayObjectAdapter(android.support.v17.leanback.widget.ArrayObjectAdapter) ClassPresenterSelector(android.support.v17.leanback.widget.ClassPresenterSelector) View(android.view.View) DetailsOverviewRow(android.support.v17.leanback.widget.DetailsOverviewRow) IconCard(cx.ring.tv.cards.iconcards.IconCard) Card(cx.ring.tv.cards.Card) ListRowPresenter(android.support.v17.leanback.widget.ListRowPresenter) Resources(android.content.res.Resources) RowPresenter(android.support.v17.leanback.widget.RowPresenter) FullWidthDetailsOverviewRowPresenter(android.support.v17.leanback.widget.FullWidthDetailsOverviewRowPresenter) ListRowPresenter(android.support.v17.leanback.widget.ListRowPresenter) IconCard(cx.ring.tv.cards.iconcards.IconCard)

Example 3 with FullWidthDetailsOverviewRowPresenter

use of android.support.v17.leanback.widget.FullWidthDetailsOverviewRowPresenter in project ring-client-android by savoirfairelinux.

the class TVContactRequestFragment method setupAdapter.

private void setupAdapter() {
    // Set detail background and style.
    FullWidthDetailsOverviewRowPresenter detailsPresenter = new FullWidthDetailsOverviewRowPresenter(new TVContactRequestDetailPresenter(), new TVContactRequestDetailsOverviewLogoPresenter());
    detailsPresenter.setBackgroundColor(ContextCompat.getColor(getActivity(), R.color.color_primary_dark));
    detailsPresenter.setInitialState(FullWidthDetailsOverviewRowPresenter.STATE_HALF);
    // Hook up transition element.
    FullWidthDetailsOverviewSharedElementHelper mHelper = new FullWidthDetailsOverviewSharedElementHelper();
    mHelper.setSharedElementEnterTransition(getActivity(), TVContactRequestActivity.SHARED_ELEMENT_NAME);
    detailsPresenter.setListener(mHelper);
    detailsPresenter.setParticipatingEntranceTransition(false);
    prepareEntranceTransition();
    detailsPresenter.setOnActionClickedListener(action -> {
        if (action.getId() == ACTION_ACCEPT) {
            presenter.acceptTrustRequest(mSelectedContactRequest);
        } else if (action.getId() == ACTION_REFUSE) {
            presenter.refuseTrustRequest(mSelectedContactRequest);
        } else if (action.getId() == ACTION_BLOCK) {
            presenter.blockTrustRequest(mSelectedContactRequest);
        }
    });
    ClassPresenterSelector mPresenterSelector = new ClassPresenterSelector();
    mPresenterSelector.addClassPresenter(DetailsOverviewRow.class, detailsPresenter);
    mPresenterSelector.addClassPresenter(ListRow.class, new ListRowPresenter());
    mAdapter = new ArrayObjectAdapter(mPresenterSelector);
    setAdapter(mAdapter);
}
Also used : FullWidthDetailsOverviewRowPresenter(android.support.v17.leanback.widget.FullWidthDetailsOverviewRowPresenter) FullWidthDetailsOverviewSharedElementHelper(android.support.v17.leanback.widget.FullWidthDetailsOverviewSharedElementHelper) ListRowPresenter(android.support.v17.leanback.widget.ListRowPresenter) ArrayObjectAdapter(android.support.v17.leanback.widget.ArrayObjectAdapter) SparseArrayObjectAdapter(android.support.v17.leanback.widget.SparseArrayObjectAdapter) ClassPresenterSelector(android.support.v17.leanback.widget.ClassPresenterSelector)

Example 4 with FullWidthDetailsOverviewRowPresenter

use of android.support.v17.leanback.widget.FullWidthDetailsOverviewRowPresenter in project butter-android by butterproject.

the class TVBaseDetailsFragment method setupDetailsOverviewRowPresenter.

private void setupDetailsOverviewRowPresenter(MediaWrapper item) {
    // Set detail background and style.
    FullWidthDetailsOverviewRowPresenter detailsPresenter = new FullWidthDetailsOverviewRowPresenter(getDetailPresenter());
    if (item.hasColor()) {
        detailsPresenter.setBackgroundColor(item.getColor());
    }
    detailsPresenter.setOnActionClickedListener(this);
    final FullWidthDetailsOverviewSharedElementHelper sharedElementHelper = new FullWidthDetailsOverviewSharedElementHelper();
    sharedElementHelper.setSharedElementEnterTransition(getActivity(), TVMediaDetailActivity.SHARED_ELEMENT_NAME);
    detailsPresenter.setListener(sharedElementHelper);
    detailsPresenter.setParticipatingEntranceTransition(false);
    presenterSelector.addClassPresenter(DetailsOverviewRow.class, detailsPresenter);
    presenterSelector.addClassPresenter(ListRow.class, new ListRowPresenter());
}
Also used : FullWidthDetailsOverviewRowPresenter(android.support.v17.leanback.widget.FullWidthDetailsOverviewRowPresenter) FullWidthDetailsOverviewSharedElementHelper(android.support.v17.leanback.widget.FullWidthDetailsOverviewSharedElementHelper) ListRowPresenter(android.support.v17.leanback.widget.ListRowPresenter)

Example 5 with FullWidthDetailsOverviewRowPresenter

use of android.support.v17.leanback.widget.FullWidthDetailsOverviewRowPresenter in project vlc-android by GeoffreyMetais.

the class MediaItemDetailsFragment method buildDetails.

private void buildDetails() {
    Bundle extras = getActivity().getIntent().getExtras();
    mMedia = extras.getParcelable("item");
    boolean hasMedia = extras.containsKey("media");
    ClassPresenterSelector selector = new ClassPresenterSelector();
    final MediaWrapper media = hasMedia ? (MediaWrapper) extras.getParcelable("media") : new MediaWrapper(AndroidUtil.LocationToUri(mMedia.getLocation()));
    if (!hasMedia) {
        media.setDisplayTitle(mMedia.getTitle());
    }
    mMediaWrapper = media;
    setTitle(media.getTitle());
    final List<MediaWrapper> mediaList = null;
    // Attach your media item details presenter to the row presenter:
    FullWidthDetailsOverviewRowPresenter rowPresenter = new FullWidthDetailsOverviewRowPresenter(new DetailsDescriptionPresenter());
    final Activity activity = getActivity();
    final DetailsOverviewRow detailsOverview = new DetailsOverviewRow(mMedia);
    final Action actionAdd = new Action(ID_FAVORITE_ADD, getString(R.string.favorites_add));
    final Action actionDelete = new Action(ID_FAVORITE_DELETE, getString(R.string.favorites_remove));
    rowPresenter.setBackgroundColor(ContextCompat.getColor(activity, R.color.orange500));
    rowPresenter.setOnActionClickedListener(new OnActionClickedListener() {

        @Override
        public void onActionClicked(Action action) {
            switch((int) action.getId()) {
                case ID_LISTEN:
                    PlaybackServiceFragment.registerPlaybackService(MediaItemDetailsFragment.this, MediaItemDetailsFragment.this);
                    break;
                case ID_PLAY:
                    TvUtil.INSTANCE.playMedia(getActivity(), media);
                    getActivity().finish();
                    break;
                case ID_FAVORITE_ADD:
                    mDb.addNetworkFavItem(Uri.parse(mMedia.getLocation()), mMedia.getTitle(), mMedia.getArtworkUrl());
                    detailsOverview.removeAction(actionAdd);
                    detailsOverview.addAction(actionDelete);
                    mRowsAdapter.notifyArrayItemRangeChanged(0, mRowsAdapter.size());
                    Toast.makeText(VLCApplication.getAppContext(), R.string.favorite_added, Toast.LENGTH_SHORT).show();
                    break;
                case ID_FAVORITE_DELETE:
                    mDb.deleteNetworkFav(Uri.parse(mMedia.getLocation()));
                    detailsOverview.removeAction(actionDelete);
                    detailsOverview.addAction(actionAdd);
                    mRowsAdapter.notifyArrayItemRangeChanged(0, mRowsAdapter.size());
                    Toast.makeText(VLCApplication.getAppContext(), R.string.favorite_removed, Toast.LENGTH_SHORT).show();
                    break;
                case ID_BROWSE:
                    TvUtil.INSTANCE.openMedia(getActivity(), media, null);
                    break;
                case ID_DL_SUBS:
                    MediaUtils.getSubs(getActivity(), media);
                    break;
                case ID_PLAY_ALL:
                    if (mediaList != null) {
                        int position = -1;
                        for (int i = 0; i < mediaList.size(); ++i) if (media.equals(mediaList.get(i)))
                            position = i;
                        Activity activity = getActivity();
                        MediaUtils.openList(activity, mediaList, position);
                        if (media.getType() == MediaWrapper.TYPE_AUDIO)
                            getActivity().startActivity(new Intent(activity, AudioPlayerActivity.class));
                        getActivity().finish();
                    }
                    break;
                case ID_PLAY_FROM_START:
                    VideoPlayerActivity.start(getActivity(), media.getUri(), true);
                    getActivity().finish();
                    break;
            }
        }
    });
    selector.addClassPresenter(DetailsOverviewRow.class, rowPresenter);
    selector.addClassPresenter(ListRow.class, new ListRowPresenter());
    mRowsAdapter = new ArrayObjectAdapter(selector);
    WorkersKt.runBackground(new Runnable() {

        @Override
        public void run() {
            final Bitmap cover = media.getType() == MediaWrapper.TYPE_AUDIO || media.getType() == MediaWrapper.TYPE_VIDEO ? AudioUtil.readCoverBitmap(mMedia.getArtworkUrl(), 512) : null;
            WorkersKt.runOnMainThread(new Runnable() {

                @Override
                public void run() {
                    if (isDetached())
                        return;
                    if (media.getType() == MediaWrapper.TYPE_DIR && FileUtils.canSave(media)) {
                        mDb = MediaDatabase.getInstance();
                        detailsOverview.setImageDrawable(ContextCompat.getDrawable(activity, TextUtils.equals(media.getUri().getScheme(), "file") ? R.drawable.ic_menu_folder_big : R.drawable.ic_menu_network_big));
                        detailsOverview.setImageScaleUpAllowed(true);
                        detailsOverview.addAction(new Action(ID_BROWSE, getString(R.string.browse_folder)));
                        if (mDb.networkFavExists(Uri.parse(mMedia.getLocation())))
                            detailsOverview.addAction(actionDelete);
                        else
                            detailsOverview.addAction(actionAdd);
                    } else if (media.getType() == MediaWrapper.TYPE_AUDIO) {
                        // Add images and action buttons to the details view
                        if (cover == null)
                            detailsOverview.setImageDrawable(ContextCompat.getDrawable(activity, R.drawable.ic_default_cone));
                        else
                            detailsOverview.setImageBitmap(getActivity(), cover);
                        detailsOverview.addAction(new Action(ID_PLAY, getString(R.string.play)));
                        detailsOverview.addAction(new Action(ID_LISTEN, getString(R.string.listen)));
                        if (mediaList != null && mediaList.contains(media))
                            detailsOverview.addAction(new Action(ID_PLAY_ALL, getString(R.string.play_all)));
                    } else if (media.getType() == MediaWrapper.TYPE_VIDEO) {
                        // Add images and action buttons to the details view
                        if (cover == null)
                            detailsOverview.setImageDrawable(ContextCompat.getDrawable(activity, R.drawable.ic_default_cone));
                        else
                            detailsOverview.setImageBitmap(getActivity(), cover);
                        detailsOverview.addAction(new Action(ID_PLAY, getString(R.string.play)));
                        detailsOverview.addAction(new Action(ID_PLAY_FROM_START, getString(R.string.play_from_start)));
                        if (FileUtils.canWrite(media.getUri()))
                            detailsOverview.addAction(new Action(ID_DL_SUBS, getString(R.string.download_subtitles)));
                        if (mediaList != null && mediaList.contains(media))
                            detailsOverview.addAction(new Action(ID_PLAY_ALL, getString(R.string.play_all)));
                    }
                    mRowsAdapter.add(detailsOverview);
                    setAdapter(mRowsAdapter);
                    if (cover != null)
                        mBackgroundManager.setBitmap(cover);
                }
            });
        }
    });
}
Also used : MediaWrapper(org.videolan.medialibrary.media.MediaWrapper) FullWidthDetailsOverviewRowPresenter(android.support.v17.leanback.widget.FullWidthDetailsOverviewRowPresenter) Action(android.support.v17.leanback.widget.Action) Bundle(android.os.Bundle) OnActionClickedListener(android.support.v17.leanback.widget.OnActionClickedListener) VideoPlayerActivity(org.videolan.vlc.gui.video.VideoPlayerActivity) AudioPlayerActivity(org.videolan.vlc.gui.tv.audioplayer.AudioPlayerActivity) Activity(android.app.Activity) Intent(android.content.Intent) ArrayObjectAdapter(android.support.v17.leanback.widget.ArrayObjectAdapter) ClassPresenterSelector(android.support.v17.leanback.widget.ClassPresenterSelector) DetailsOverviewRow(android.support.v17.leanback.widget.DetailsOverviewRow) Bitmap(android.graphics.Bitmap) ListRowPresenter(android.support.v17.leanback.widget.ListRowPresenter) AudioPlayerActivity(org.videolan.vlc.gui.tv.audioplayer.AudioPlayerActivity)

Aggregations

FullWidthDetailsOverviewRowPresenter (android.support.v17.leanback.widget.FullWidthDetailsOverviewRowPresenter)5 ListRowPresenter (android.support.v17.leanback.widget.ListRowPresenter)5 ArrayObjectAdapter (android.support.v17.leanback.widget.ArrayObjectAdapter)4 ClassPresenterSelector (android.support.v17.leanback.widget.ClassPresenterSelector)4 Bundle (android.os.Bundle)3 DetailsOverviewRow (android.support.v17.leanback.widget.DetailsOverviewRow)3 Activity (android.app.Activity)2 Intent (android.content.Intent)2 Bitmap (android.graphics.Bitmap)2 Action (android.support.v17.leanback.widget.Action)2 FullWidthDetailsOverviewSharedElementHelper (android.support.v17.leanback.widget.FullWidthDetailsOverviewSharedElementHelper)2 OnActionClickedListener (android.support.v17.leanback.widget.OnActionClickedListener)2 MediaWrapper (org.videolan.medialibrary.media.MediaWrapper)2 AudioPlayerActivity (org.videolan.vlc.gui.tv.audioplayer.AudioPlayerActivity)2 VideoPlayerActivity (org.videolan.vlc.gui.video.VideoPlayerActivity)2 Resources (android.content.res.Resources)1 RowPresenter (android.support.v17.leanback.widget.RowPresenter)1 SparseArrayObjectAdapter (android.support.v17.leanback.widget.SparseArrayObjectAdapter)1 View (android.view.View)1 ViewGroup (android.view.ViewGroup)1