Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DShadowCardDrag.java55 float momentumY; field in ShadowCardDrag.CardDragState
63 momentumY = 0; in onDown()
74 momentumY = 0.9f * momentumY + 0.1f * (newMomentumY * MOMENTUM_SCALE); in onMove()
77 momentumY = Math.max(Math.min((momentumY), MAX_ANGLE), -MAX_ANGLE); in onMove()
80 mCard.setRotationX(-momentumY); in onMove()
85 … float alphaDarkening = (momentumX * momentumX + momentumY * momentumY) / (90 * 90); in onMove()