Search in sources :

Example 1 with MediaControlView

use of com.owncloud.android.media.MediaControlView in project android by owncloud.

the class PreviewAudioFragment method onCreateView.

/**
     * {@inheritDoc}
     */
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    super.onCreateView(inflater, container, savedInstanceState);
    Log_OC.v(TAG, "onCreateView");
    View view = inflater.inflate(R.layout.preview_audio_fragment, container, false);
    mImagePreview = (ImageView) view.findViewById(R.id.image_preview);
    mMediaController = (MediaControlView) view.findViewById(R.id.media_controller);
    mProgressBar = (ProgressBar) view.findViewById(R.id.syncProgressBar);
    DisplayUtils.colorPreLollipopHorizontalProgressBar(mProgressBar);
    return view;
}
Also used : ImageView(android.widget.ImageView) View(android.view.View) MediaControlView(com.owncloud.android.media.MediaControlView)

Example 2 with MediaControlView

use of com.owncloud.android.media.MediaControlView in project android by owncloud.

the class PreviewVideoFragment method onCreateView.

/**
     * {@inheritDoc}
     */
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    super.onCreateView(inflater, container, savedInstanceState);
    Log_OC.v(TAG, "onCreateView");
    View view = inflater.inflate(R.layout.preview_video_fragment, container, false);
    mProgressBar = (ProgressBar) view.findViewById(R.id.syncProgressBar);
    DisplayUtils.colorPreLollipopHorizontalProgressBar(mProgressBar);
    mVideoPreview = (VideoView) view.findViewById(R.id.video_preview);
    mVideoPreview.setOnTouchListener(this);
    mMediaController = (MediaControlView) view.findViewById(R.id.media_controller);
    return view;
}
Also used : View(android.view.View) VideoView(android.widget.VideoView) MediaControlView(com.owncloud.android.media.MediaControlView)

Aggregations

View (android.view.View)2 MediaControlView (com.owncloud.android.media.MediaControlView)2 ImageView (android.widget.ImageView)1 VideoView (android.widget.VideoView)1