Back to project page Android-Image-Edit.
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.
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); } }