Home
last modified time | relevance | path

Searched refs:momentumX (Results 1 – 1 of 1) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DShadowCardDrag.java54 float momentumX; field in ShadowCardDrag.CardDragState
62 momentumX = 0; in onDown()
73 momentumX = 0.9f * momentumX + 0.1f * (newMomentumX * MOMENTUM_SCALE); in onMove()
76 momentumX = Math.max(Math.min((momentumX), MAX_ANGLE), -MAX_ANGLE); in onMove()
82 mCard.setRotationY(momentumX); in onMove()
85 … float alphaDarkening = (momentumX * momentumX + momentumY * momentumY) / (90 * 90); in onMove()