Android Open Source - Android-Image-Edit Update Image






From Project

Back to project page Android-Image-Edit.

License

The source code is released under:

MIT License

If you think the Android project Android-Image-Edit 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.owleyes.moustache;
/* w  w  w  .  j a va  2 s.c  o  m*/
import android.os.Handler;

public class UpdateImage implements Runnable {

    private CustomRelativeLayout _rl;

    private int _state;

    private int _button;

    private long _currentTime;

    private Handler _handler;

    public UpdateImage(CustomRelativeLayout rl, Handler handler) {
        _rl = rl;
        _handler = handler;
    }

    public void setState(int state, int button) {
        _state = state;
        _currentTime = System.currentTimeMillis();
        _button = button;
    }

    @Override
    public void run() {

        int amount = 2;
        if (_button == Viewer.MINUS) {
            amount = -amount;
        }
        _rl.handleEvent(_state, amount * 5);
        _handler.postDelayed(this, 100);
    }
}




Java Source Code List

com.owleyes.moustache.CustomHorizontalScrollView.java
com.owleyes.moustache.CustomImageView.java
com.owleyes.moustache.CustomRelativeLayout.java
com.owleyes.moustache.CustomScrollView.java
com.owleyes.moustache.Main.java
com.owleyes.moustache.UpdateImage.java
com.owleyes.moustache.Viewer.java