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;
}
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;
}
Aggregations