Android Open Source - InfinitePager Slidable Pager Title






From Project

Back to project page InfinitePager.

License

The source code is released under:

Apache License

If you think the Android project InfinitePager 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 android.support.v4.view;
/*from w w w . j  a  v a 2 s.  c  om*/
/**
 * An Interface to allow other classes to call methods to perform sliding in and out actions.
 */
public interface SlidablePagerTitle {

    /**
     * The Tab Layout is not hidable. Calling any method to hide or show the Tab Layout will be ignored.
     */
    public static final int HIDE_NONE    = 0;
    /**
     * The Tab Layout is hidable. The Tab Layout will appear and disappear automatically and also
     * when calling the appropriate methods to show or hide the Tab Layout.
     */
    public static final int HIDE_AUTO    = 1;
    /**
     * The Tab Layout is hidable, but will only change state when {@link #slideIn(long)} or {@link #slideOut(long)}
     * are called.
     */
    public static final int HIDE_PROGRAM = 2;

    /**
     * The delay in milliseconds after which the PagerTitleStrip will undergo hiding.
     *
     * Default long value is 5 seconds.
     */
    public static final long DISPLAY_TIME = 5000;

    /**
     * The delay in milliseconds after which the PagerTitleStrip will undergo hiding.
     *
     * Default short value is 1 second.
     */
    public static final long DISPLAY_TIME_SHORT = 1000;

    /**
     * The minimum amount the pointer needs to move in order to trigger the sliding menu to appear or
     * disappear.
     */
    public static final int MOVE_THRESHOLD = 50;

    /**
     * Show the title bar for the number of milliseconds provided before hiding again.
     * @param milliseconds The number of milliseconds to show the title for. A negative value to show
     *                     the title bar until another event occurs to close it again, or this method
     *                     is called again with a value equal to or larger than 0.
     */
    public void slideIn(long milliseconds);

    /**
     * Hide the title bar after the number of milliseconds provided before hiding again.
     * @param milliseconds The maximum number of milliseconds to wait before hiding the title.
     *                     A negative value or zero will hide the title bar now.
     */
    public void slideOut(long milliseconds);
}




Java Source Code List

android.support.v4.view.SlidablePagerTitle.java
android.support.v4.view.SlidingTabLayout.java
android.support.v4.view.SlidingTabStrip.java
com.github.paradam.infinitepager.InfiniteFragmentPagerAdapter.java
com.github.paradam.infinitepager.InfiniteFragmentStatePagerAdapter.java
com.github.paradam.infinitepager.InfinitePagerAdapter.java
com.github.paradam.infinitepager.InfiniteViewPager.java
com.github.paradam.infinitepager.demo.v4.InfiniteFragmentStatePagerActivity.java
com.github.paradam.support.v4.infinitepager.InfiniteFragmentPagerAdapter.java
com.github.paradam.support.v4.infinitepager.InfiniteFragmentStatePagerAdapter.java