Android Open Source - synchroller Static Size Range






From Project

Back to project page synchroller.

License

The source code is released under:

MIT License

If you think the Android project synchroller 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 ru.egslava.synchroller;
//ww w  .ja v  a 2s .  c o m
/**
 * Just manual declaration of virtual component width and height
 */
public class StaticSizeRange implements RangeComputer{
    private final int width;
    private final int height;

    StaticSizeRange(int width, int height){
        this.width = width;
        this.height = height;
    }

    @Override
    public void computeScroll() {}

    @Override
    public int computeHorizontalScrollExtent() {
        return 0;
    }

    @Override
    public int computeHorizontalScrollRange() {
        return width;
    }

    @Override
    public int computeVerticalScrollExtent() {
        return 0;
    }

    @Override
    public int computeVerticalScrollRange() {
        return height;
    }

}




Java Source Code List

ru.egslava.synchroller.ApplicationTest.java
ru.egslava.synchroller.ConcreteViewRangeComputer.java
ru.egslava.synchroller.MaxChildSizeRangeComputer.java
ru.egslava.synchroller.RangeComputer.java
ru.egslava.synchroller.SavedState.java
ru.egslava.synchroller.ScrollListener.java
ru.egslava.synchroller.ScrollableComponent.java
ru.egslava.synchroller.ScrollerTo.java
ru.egslava.synchroller.StaticSizeRange.java
ru.egslava.synchroller.ViewPrivateMethods.java