GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - caivery/PhotoViewSlider: A simple photo browser for Android applications.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
gradle/wrapper
gradle/wrapper
 
 
photoviewslider
photoviewslider
 
 
sample
sample
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
PhotoViewSlider.gif
PhotoViewSlider.gif
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

PhotoViewSlider

Version Version
A simple photo browser for Android applications.

![alt tag] (https://raw.githubusercontent.com/jeancsanchez/PhotoViewSlider/master/PhotoViewSlider.gif)

##Gradle Dependency

dependencies {
    // ... other dependencies
    compile 'io.github.jeancsanchez.photoviewslider:photoviewslider:1.2.0'
}

##Maven

<dependency>
  <groupId>io.github.jeancsanchez.photoviewslider</groupId>
  <artifactId>photoviewslider</artifactId>
  <version>1.2.0</version>
  <type>pom</type>
</dependency>

##Getting Started You only need a PhotosViewSlider on your Layout Activity.

<br.com.jeancsanchez.photoviewslider.PhotosViewSlider
        android:id="@+id/photosViewSlider"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

##Code Setup ###Setup the view on your Activity

photoViewSlider = (PhotosViewSlider) findViewById(R.id.photosViewSlider);

###Option 1: Set the urls on demand and initialize the photo view.

photoViewSlider.setPhotoUrl("http://awesomeimg.com.br", "any description");
photoViewSlider.setPhotoUrl("http://awesomeimg.com.br");
photoViewSlider.initializePhotos();

###Option 2: Create a list of String urls, so initialize the photo view.

stringsList = new ArrayList<>();

stringsList.add("http://awesomeimg.com.br");
stringsList.add("http://awesomeimg.com.br");
photoViewSlider.initializePhotosUrls(stringsList);

###Option 3: Create a list of Photo objects and set the values to it, so initialize the photo view .

photoList = new ArrayList<>();

Photo photo1 = new Photo();
photo1.setImage("http://modmyi.com/attachments/forums/iphone-4-4s-new-skins-themes-launches/555329d1322802429-ice-cream-sandwich-android-4-0-a-android_ice_cream_sandwich_electronic_bytes.png");
photo1.setDescription("Android  Ice Cream Sandwich");

Photo photo2 = new Photo();
photo2.setImage("http://cdn.gigjets.com/wp-content/uploads/2012/10/Android-Jelly-Bean-Logo-Sort-Of.jpg");
photo2.setDescription("Android Jelly Bean");

photoList.add(photo1);
photoList.add(photo2);

photoViewSlider.initializePhotos(photosList);

###Change transition animation (Optional)

photoViewSlider.setTechniqueAnimation(Techniques.BounceIn);

##TO DO LIST

  • Make the recycler view "responsive"

##Thanks

  • Picasso
  • [Android View Animations] (https://github.com/daimajia/AndroidViewAnimations)

About

📷 A simple photo browser for Android applications.

Resources

Readme
Apache-2.0 license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.