Android Open Source - android-slideshow-widget Play List






From Project

Back to project page android-slideshow-widget.

License

The source code is released under:

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions...

If you think the Android project android-slideshow-widget listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.marvinlabs.widget.slideshow;
/*w ww .j  av a 2 s.c  om*/
/**
 * Created by vprat on 29/05/2014.
 */
public interface PlayList {

    /**
     * Get the index of the slide currently being played
     *
     * @return -1 if the current slide is not available. A positive integer otherwise.
     */
    public int getCurrentSlide();

    /**
     * Get the index of the first slide to play
     *
     * @return -1 if there will be nothing to play. A positive integer otherwise.
     */
    public int getFirstSlide();

    /**
     * Get the index of the next slide in the play list
     *
     * @return -1 if the next slide is not available. A positive integer otherwise.
     */
    public int getNextSlide();

    /**
     * Get the index of the previous slide in the play list
     *
     * @return -1 if the previous slide is not available. A positive integer otherwise.
     */
    public int getPreviousSlide();

    /**
     * Rewind the play list to the first slide
     */
    public void rewind();

    /**
     * Moves the playlist to the next slide
     *
     * @return The new current slide index
     */
    public int next();

    /**
     * Moves the playlist to the previous slide
     *
     * @return The new current slide index
     */
    public int previous();

    /**
     * This function is called when the number of slides has changed
     */
    public void onSlideCountChanged(int newSlideCount);

    /**
     * Get the duration for the given slide
     *
     * @return The duration in ms
     */
    public long getSlideDuration(int position);

    /**
     * Indicate if the slide show is advancing to the next slide after slideDuration ms are elapsed
     * @return
     */
    public boolean isAutoAdvanceEnabled();
}




Java Source Code List

com.marvinlabs.widget.slideshow.PlayList.java
com.marvinlabs.widget.slideshow.SlideShowAdapter.java
com.marvinlabs.widget.slideshow.SlideShowView.java
com.marvinlabs.widget.slideshow.TransitionFactory.java
com.marvinlabs.widget.slideshow.adapter.BitmapAdapter.java
com.marvinlabs.widget.slideshow.adapter.GenericBitmapAdapter.java
com.marvinlabs.widget.slideshow.adapter.GenericRemoteBitmapAdapter.java
com.marvinlabs.widget.slideshow.adapter.GenericResourceBitmapAdapter.java
com.marvinlabs.widget.slideshow.adapter.RemoteBitmapAdapter.java
com.marvinlabs.widget.slideshow.adapter.ResourceBitmapAdapter.java
com.marvinlabs.widget.slideshow.demo.SlideShowActivity.java
com.marvinlabs.widget.slideshow.picasso.GenericPicassoBitmapAdapter.java
com.marvinlabs.widget.slideshow.picasso.PicassoRemoteBitmapAdapter.java
com.marvinlabs.widget.slideshow.picasso.PicassoResourceBitmapAdapter.java
com.marvinlabs.widget.slideshow.playlist.RandomPlayList.java
com.marvinlabs.widget.slideshow.playlist.SequentialPlayList.java
com.marvinlabs.widget.slideshow.transition.BaseTransitionFactory.java
com.marvinlabs.widget.slideshow.transition.FadeTransitionFactory.java
com.marvinlabs.widget.slideshow.transition.FlipTransitionFactory.java
com.marvinlabs.widget.slideshow.transition.NoTransitionFactory.java
com.marvinlabs.widget.slideshow.transition.RandomTransitionFactory.java
com.marvinlabs.widget.slideshow.transition.SlideAndZoomTransitionFactory.java
com.marvinlabs.widget.slideshow.transition.ZoomTransitionFactory.java