Searched refs:velocityX (Results 1 – 5 of 5) sorted by relevance
/development/samples/devbytes/animation/CardFlip/src/com/example/android/cardflip/ |
D | CardFlip.java | 170 public void rotateCardView(final CardView cardView, int stack, float velocityX, in rotateCardView() argument 173 boolean xGreaterThanY = Math.abs(velocityX) > Math.abs(velocityY); in rotateCardView() 182 if (velocityX < 0 && xGreaterThanY) { in rotateCardView() 190 cardView.flipRightToLeft(leftStack.size() - 1, (int)velocityX); in rotateCardView() 198 if (velocityX > 0 && xGreaterThanY) { in rotateCardView() 206 cardView.flipLeftToRight(rightStack.size() - 1, (int)velocityX); in rotateCardView()
|
/development/samples/browseable/BasicGestureDetect/src/com.example.android.basicgesturedetect/ |
D | GestureListener.java | 54 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, in onFling() argument
|
/development/samples/training/InteractiveChart/src/com/example/android/interactivechart/ |
D | InteractiveLineGraphView.java | 786 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { 787 fling((int) -velocityX, (int) -velocityY); 804 private void fling(int velocityX, int velocityY) { in fling() argument 817 velocityX, in fling()
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | GameView.java | 450 float velocityX = (float) Math.cos(direction) * speed; 456 obstacle.setVelocity(velocityX, velocityY);
|
/development/samples/ControllerSample/src/com/example/controllersample/ |
D | GameView.java | 438 float velocityX = (float) Math.cos(direction) * speed; in step() local 444 obstacle.setVelocity(velocityX, velocityY); in step()
|