MediaViewer is a simple and customizable viewer that allows displaying media (images/videos) in a sliding screen UI. The followings are some of the main features:
- Display images and videos
- Zoom in/out images
- Swipe up/down to dismiss
- show video placeholder
- play video
- Add customizable overlay
allprojects {
repositories {
//...
jCenter()
}
}dependencies {
//...
implementation 'com.zagori:mediaviewer:latest-release'
}ModalViewer.load(context, media_URL_list).start();
ModalViewer
.load(this, posterImages)
.hideStatusBar(true)
.allowZooming(true)
.allowSwipeToDismiss(true)
.addOverlay(overlayView)
//.addOverlay(R.layout.overlay_view)
.setImageChangeListener(new OnImageChangeListener(){
@Override
public void onImageChange(final int position) {
}
})
.start();
Still under development
I welcome code contributions through pull requests. Please feel free to help make this plugin even better!
Copyright 2019 Zagori
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.