https://github.com/mvnthomaz/imagegalleryscrollpager
A powerful image gallery for Android
https://github.com/mvnthomaz/imagegalleryscrollpager
android-library gallery-images internet pager scroll
Last synced: about 1 month ago
JSON representation
A powerful image gallery for Android
- Host: GitHub
- URL: https://github.com/mvnthomaz/imagegalleryscrollpager
- Owner: mvnthomaz
- Created: 2017-07-27T21:27:34.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-28T15:54:33.000Z (about 8 years ago)
- Last Synced: 2025-04-16T07:17:42.977Z (6 months ago)
- Topics: android-library, gallery-images, internet, pager, scroll
- Language: Java
- Homepage:
- Size: 3.46 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Android Image Gallery ScrollPager
## Demo

## Usage### Step 1
#### Gradle
```groovy
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile 'com.github.maarqin:ImageGalleryScrollPager:v1.3'
}
```#### Maven
```xml
jitpack.io
https://jitpack.io
com.github.maarqin
ImageGalleryScrollPager
v1.3```
### Step 2
Add permissions (if necessary) to your `AndroidManifest.xml`
```xml
```
**Note:** If you want to load images from the internet, you need both the `INTERNET` and `READ_EXTERNAL_STORAGE` permissions to allow files from the internet to be cached into local storage.
If you want to load images from drawable, then no additional permissions are necessary.
### Step 3
Add the Slider to your layout:
```java
...
...
```
```java
...ArrayList galleryImages = new ArrayList<>();
galleryImages.add(new Image("https://goo.gl/FLsg2K"));
...
galleryImages.add(new Image("https://goo.gl/MHDwhE"));FragmentManager fragmentManager = getChildFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();ImageGalleryPagerScrollFragment galleryImageScrollViewFragment = new ImageGalleryPagerScrollFragment();
Bundle bundle = new Bundle();
bundle.putParcelableArrayList(ImageGalleryPagerScrollFragment.ITEMS, galleryImages);galleryImageScrollViewFragment.setArguments(bundle);
fragmentTransaction.replace(R.id.flImagesProduct, galleryImageScrollViewFragment);
fragmentTransaction.commit();
...
```
## Advanced usagePlease visit [Wiki](https://github.com/daimajia/AndroidImageSlider/wiki)
## Thanks- [Picasso](https://github.com/square/picasso)
- [NineOldAndroids](https://github.com/JakeWharton/NineOldAndroids)
- [ViewPagerTransforms](https://github.com/ToxicBakery/ViewPagerTransforms)## About me
Hi, I am Marcos and I am from Brazil.
I've been working with web and mobile programming for some years.
I am a student of the Computer Science course and currently work as an Android programmer in a company specializing in mobile development. If you get any problems when using this library, please feel free to [email me](mailto:thomaz.dev@gmail.com). :smiley: