Search in sources :

Example 6 with OnRepeatListener

use of org.videolan.vlc.gui.helpers.OnRepeatListener in project vlc-android by GeoffreyMetais.

the class VideoPlayerActivity method showDelayControls.

public void showDelayControls() {
    mTouchAction = TOUCH_NONE;
    if (!mDisplayManager.isPrimary())
        showOverlayTimeout(OVERLAY_INFINITE);
    ViewStubCompat vsc = (ViewStubCompat) findViewById(R.id.player_overlay_settings_stub);
    if (vsc != null) {
        vsc.inflate();
        mPlaybackSettingPlus = (ImageView) findViewById(R.id.player_delay_plus);
        mPlaybackSettingMinus = (ImageView) findViewById(R.id.player_delay_minus);
    }
    mPlaybackSettingMinus.setOnClickListener(this);
    mPlaybackSettingPlus.setOnClickListener(this);
    mPlaybackSettingMinus.setOnTouchListener(new OnRepeatListener(this));
    mPlaybackSettingPlus.setOnTouchListener(new OnRepeatListener(this));
    mPlaybackSettingMinus.setVisibility(View.VISIBLE);
    mPlaybackSettingPlus.setVisibility(View.VISIBLE);
    mPlaybackSettingPlus.requestFocus();
    initPlaybackSettingInfo();
}
Also used : ViewStubCompat(android.support.v7.widget.ViewStubCompat) OnRepeatListener(org.videolan.vlc.gui.helpers.OnRepeatListener)

Aggregations

OnRepeatListener (org.videolan.vlc.gui.helpers.OnRepeatListener)6 ViewStubCompat (android.support.v7.widget.ViewStubCompat)2 View (android.view.View)2 Window (android.view.Window)2 ImageView (android.widget.ImageView)2 TextView (android.widget.TextView)2