¡@

Home 

2014/10/16 ¤W¤È 08:11:56

android Programming Glossary: currentx

java.lang.IllegalArgumentException: View not attached to window manager

http://stackoverflow.com/questions/2745061/java-lang-illegalargumentexception-view-not-attached-to-window-manager

Android: Scrolling an Imageview

http://stackoverflow.com/questions/3058164/android-scrolling-an-imageview

public boolean onTouch View view MotionEvent event float currentX currentY switch event.getAction case MotionEvent.ACTION_DOWN.. downY event.getY break case MotionEvent.ACTION_MOVE currentX event.getX currentY event.getY scrollByX int downX currentX.. event.getX currentY event.getY scrollByX int downX currentX scrollByY int downY currentY scrolling to left side of image..

Developing an Android Homescreen

http://stackoverflow.com/questions/3467461/developing-an-android-homescreen

arg1.getX break case MotionEvent.ACTION_UP float currentX arg1.getX if downXValue currentX if currentView view3 float.. float currentX arg1.getX if downXValue currentX if currentView view3 float t3 320 currentX downXValue 320.. if downXValue currentX if currentView view3 float t3 320 currentX downXValue 320 this.vf.setInAnimation AnimationHelper.inFromLeftAnimation..

Images in ScrollView in android

http://stackoverflow.com/questions/4990682/images-in-scrollview-in-android

Activity private LinearLayout container private int currentX private int currentY @Override public void onCreate Bundle savedInstanceState.. switch event.getAction case MotionEvent.ACTION_DOWN currentX int event.getRawX currentY int event.getRawY break case MotionEvent.ACTION_MOVE.. int y2 int event.getRawY container.scrollBy currentX x2 currentY y2 currentX x2 currentY y2 break case MotionEvent.ACTION_UP..

java.lang.IllegalArgumentException: View not attached to window manager

http://stackoverflow.com/questions/2745061/java-lang-illegalargumentexception-view-not-attached-to-window-manager

Android: Scrolling an Imageview

http://stackoverflow.com/questions/3058164/android-scrolling-an-imageview

float downX downY int totalX totalY int scrollByX scrollByY public boolean onTouch View view MotionEvent event float currentX currentY switch event.getAction case MotionEvent.ACTION_DOWN downX event.getX downY event.getY break case MotionEvent.ACTION_MOVE.. case MotionEvent.ACTION_DOWN downX event.getX downY event.getY break case MotionEvent.ACTION_MOVE currentX event.getX currentY event.getY scrollByX int downX currentX scrollByY int downY currentY scrolling to left side of image.. downY event.getY break case MotionEvent.ACTION_MOVE currentX event.getX currentY event.getY scrollByX int downX currentX scrollByY int downY currentY scrolling to left side of image pic moving to the right if currentX downX if totalX maxLeft..

Developing an Android Homescreen

http://stackoverflow.com/questions/3467461/developing-an-android-homescreen

arg1.getAction case MotionEvent.ACTION_DOWN this.downXValue arg1.getX break case MotionEvent.ACTION_UP float currentX arg1.getX if downXValue currentX if currentView view3 float t3 320 currentX downXValue 320 this.vf.setInAnimation.. this.downXValue arg1.getX break case MotionEvent.ACTION_UP float currentX arg1.getX if downXValue currentX if currentView view3 float t3 320 currentX downXValue 320 this.vf.setInAnimation AnimationHelper.inFromLeftAnimation.. case MotionEvent.ACTION_UP float currentX arg1.getX if downXValue currentX if currentView view3 float t3 320 currentX downXValue 320 this.vf.setInAnimation AnimationHelper.inFromLeftAnimation t3 this.vf.setOutAnimation AnimationHelper.outToRightAnimation..

Images in ScrollView in android

http://stackoverflow.com/questions/4990682/images-in-scrollview-in-android

And then use code to scroll it public class StartActivity extends Activity private LinearLayout container private int currentX private int currentY @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState setContentView.. 220 400 @Override public boolean onTouchEvent MotionEvent event switch event.getAction case MotionEvent.ACTION_DOWN currentX int event.getRawX currentY int event.getRawY break case MotionEvent.ACTION_MOVE int x2 int event.getRawX int y2 int.. break case MotionEvent.ACTION_MOVE int x2 int event.getRawX int y2 int event.getRawY container.scrollBy currentX x2 currentY y2 currentX x2 currentY y2 break case MotionEvent.ACTION_UP break return true Here many improvements..