All Projects → VEINHORN → Scrollgalleryview

VEINHORN / Scrollgalleryview

Licence: mit
🌉 Android image gallery with bottom scroll view

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Scrollgalleryview

Gallery
图片缩放以及相册的实现
Stars: ✭ 24 (-95.01%)
Mutual labels:  picasso, glide, fresco, gallery
BaseDevelop
an android project for now fashion open source framework
Stars: ✭ 24 (-95.01%)
Mutual labels:  picasso, glide, fresco
Transformers
An Android transformation library providing a variety of image transformations for Coil, Glide, Picasso, and Fresco.
Stars: ✭ 167 (-65.28%)
Mutual labels:  picasso, glide, fresco
Imageloaderframework
打造统一的图片加载框架,融合Glide(4.x),Fresco,不侵入业务代码,一套API兼容两种加载库
Stars: ✭ 422 (-12.27%)
Mutual labels:  glide, fresco
Imageloader
a wrapper for fresco,glidev3,v4, a solution for image load and big image preview, and provide debug tool for imageview
Stars: ✭ 224 (-53.43%)
Mutual labels:  glide, fresco
Glidepalette
Android Lollipop Palette is now easy to use with Glide
Stars: ✭ 1,670 (+247.19%)
Mutual labels:  picasso, glide
Composable Images
The Composable Images is a library providing Jetpack Compose wrapper for Glide, Picasso, and Coil.
Stars: ✭ 107 (-77.75%)
Mutual labels:  picasso, glide
neon
Provides Jetpack Compose support for different image loading libraries.
Stars: ✭ 13 (-97.3%)
Mutual labels:  picasso, glide
AvatarImageGenerator
Android library to generate image avatar from the first letter of a username. Letter avatar like Gmail Android best practice
Stars: ✭ 61 (-87.32%)
Mutual labels:  picasso, glide
MediaSliderView
Pure java based, highly customizable media slider gallery supporting both images and videos for android.
Stars: ✭ 85 (-82.33%)
Mutual labels:  gallery, glide
Picassopalette
Android Lollipop Palette is now easy to use with Picasso !
Stars: ✭ 366 (-23.91%)
Mutual labels:  picasso, glide
Materialimageloading
Material image loading implementation
Stars: ✭ 396 (-17.67%)
Mutual labels:  picasso, glide
Ptshowcaseviewcontroller
An initial implementation of a "showcase" view( controller) for iOS apps... Visualizes images, videos and PDF files beautifully! (by @pittleorg) [meta: image, photo, video, document, pdf, album, gallery, showcase, gallery, iOS, iPhone, iPad, component, library, viewer]
Stars: ✭ 395 (-17.88%)
Mutual labels:  gallery
Ngx Gallery
Angular image gallery plugin
Stars: ✭ 417 (-13.31%)
Mutual labels:  gallery
Pickimage
Shows a DialogFragment with camera and gallery options. User can choose wich provider wants to pick images from. 📸 🖼️
Stars: ✭ 386 (-19.75%)
Mutual labels:  gallery
Mvvmsmart
基于谷歌最新AAC架构,MVVM设计模式的一套快速开发库,整合ViewModel+Lifecycles+Navigation+DataBinding+LiveData+Okhttp+Retrofit+RxJava+Glide等主流模块,满足日常开发需求。使用该框架可以快速开发高质量、易维护的Android应用。 项目组会持续维护,请放心使用.欢迎Start并Fork交流.
Stars: ✭ 382 (-20.58%)
Mutual labels:  glide
Devring
安卓基础开发库,包含各常用模块,让开发简单点。
Stars: ✭ 414 (-13.93%)
Mutual labels:  glide
React Native Gallery Toolkit
Reanimated 2 powered gallery implementation
Stars: ✭ 379 (-21.21%)
Mutual labels:  gallery
Insgallery
📸 Instagram-like image picker for Android (一款 UI 炫酷高仿 Instagram 的图片、视频选择器)
Stars: ✭ 409 (-14.97%)
Mutual labels:  gallery
Zlphotobrowser
Wechat-like image picker. Support select normal photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑图片/视频,支持多语言国际化等功能;
Stars: ✭ 3,962 (+723.7%)
Mutual labels:  gallery

ScrollGalleryView

Build Status Android Arsenal Join the chat at https://gitter.im/VEINHORN/ScrollGalleryView

ScrollGalleryView is a flexible library which helps you to create awesome media galleries in your Android application. It's easily integrated with the most popular image loading libraries such as Picasso, Glide and Fresco.

ScrollGalleryView

Key features

  • Easy way to select images in gallery (thumbnails)
  • Zooming
  • Simple API
  • Video

Installing

Add JitPack repository to your root build.gradle (see more details here):

allprojects {
    repositories {
        // ...
        maven { url 'https://jitpack.io' }
    }
}

Add dependency to your module build.gradle:

implementation 'com.veinhorn.scrollgalleryview:library:1.2.6'

MediaLoaders

There are several MediaLoaders implementations for most popular caching libraries: Picasso, Glide, Fresco.

Picasso

implementation 'com.veinhorn.scrollgalleryview:picasso-loader:1.2.4'

Glide

implementation 'com.veinhorn.scrollgalleryview:glide-loader:1.2.4'

Fresco

implementation 'com.veinhorn.scrollgalleryview:fresco-loader:1.2.4'

Usage

Add ScrollGalleryView to your layout:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <com.veinhorn.scrollgalleryview.ScrollGalleryView
        android:id="@+id/scroll_gallery_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#000"/>
</LinearLayout>

Initialize ScrollGalleryView in your activity:

import static com.veinhorn.scrollgalleryview.loader.picasso.dsl.DSL.*; // simplifies adding media

public class MainActivity extends FragmentActivity {
    private ScrollGalleryView galleryView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        galleryView = ScrollGalleryView
                .from((ScrollGalleryView) findViewById(R.id.scroll_gallery_view))
                .settings(
                        GallerySettings
                                .from(getSupportFragmentManager())
                                .thumbnailSize(100)
                                .enableZoom(true)
                                .build()
                )
                .add(image("http://pirate-islands.com/wp-content/uploads/2018/07/07_Dom-Fernando-II_01-636x310.jpg"))
                .add(image("http://povodu.ru/wp-content/uploads/2016/04/pochemu-korabl-derzitsa-na-vode.jpg"))
                .add(video("http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4", R.mipmap.default_video))
                .build();
    }
}

If you use ScrollGalleryView version prior 1.2.0 or need more info about gallery initialization you can find it here.

Adding media

ScrollGalleryView supports different types of media such as images and videos. You can create image gallery, video gallery, or mix them in any way. To abstract from concreate way of image loading ScrollGalleryView uses MediaLoader so it makes possible to use different image loading libraries depending on your needs (Picasso, Glide, Fresco).

Picasso loader

Default image loader

Library is also contains default image loader but it's not optimized for performance.

Note: it's highly recommended to use custom image loader against default

Configuration

You can specify a bunch of additional settings during gallery initialization.

Option Method Description
Thumbnail size .setThumbnailSize(200) You can configure thumbnails size in
Zoom .setZoom(true) Enable zoom
Hide thumbnails .withHiddenThumbnails(false) Hide scroll view container with thumbnails on the bottom of screen
Hide thumbnails on click .hideThumbnailsOnClick(true) Hide scroll view container with thumbnails when you click on main image area

Adding listeners

ScrollGalleryView supports adding listeners for events like: image click, long image click, changed page. More details you can find in separate doc.

Sample application

The sample application published on Google Play.

Get it on Google Play

License

MIT License

Copyright (c) 2019 Boris Korogvich

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].