This library is used to add gallery feature in your app easily and efficiently.
Add repository url and dependency in application module gradle file:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile 'com.github.shubhamgulati11:GalleryLibrary:v1.0'
}
Sgallery.S(MainActivity.this,arrayList,3);///Sgallery.S(Context,Arraylist<String>,No. of columns in gridview)

- Glide
- Stack overflow
Hope this helps you in making your app. Keep developing.