History log of /frameworks/base/graphics/java/android/graphics/drawable/RippleBackground.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a0c0ca738989fd3ecad8a54a91f0c6a8b30ad1ab 15-Jan-2015 Alan Viverette <alanv@google.com> Jump ripples to end when switching to a non-hardware canvas

Previously we canceled the hardware animations but neglected to reset
the state, which left us drawing in the pressed state.

Bug: 19020524
Change-Id: I439a18126b9093cac40006361be99f8d077b95a9
/frameworks/base/graphics/java/android/graphics/drawable/RippleBackground.java
9bc11ac168d63900589158074028e6c480579421 12-Dec-2014 Alan Viverette <alanv@google.com> Move ripple to end state on jump when hardware exit is pending

BUG: 18734676
Change-Id: Ie063e1eec0b4f28f936ea27822afacfd1b72a0e9
/frameworks/base/graphics/java/android/graphics/drawable/RippleBackground.java
6dfa60f33ca6018959ebff1efde82db7d2aed1e3 04-Dec-2014 Alan Viverette <alanv@google.com> Avoid extra saveLayer calls in RippleDrawable, fix docs

Also fixes opacity returned from InsetDrawable to accurately reflect
the transparent inset area and updates button to correctly use tint.

BUG: 18226391
Change-Id: Ia9a88d9d663990a6829d2f251c7f59ea2a79d816
/frameworks/base/graphics/java/android/graphics/drawable/RippleBackground.java
cc3c573334a9cd2124a8a0ccf2f37884e36f83fa 08-Nov-2014 Alan Viverette <alanv@google.com> Reduce number of saveLayer calls in RippleDrawable

Removes an extra saveLayer call by rendering ripples as overlapping. We
are now down to zero saveLayers when drawing unmasked ripples or ripples
masked against opaque content/masks, one saveLayer for ripples masked
against content and two saveLayers when masked against an explicit mask
layer.

BUG: 18226391
Change-Id: I0fc09d21fbc462fbcfe4c26fc7b18737f584043e
/frameworks/base/graphics/java/android/graphics/drawable/RippleBackground.java
f92f26fef215897bd302c1c06adbe5d853881b3f 08-Oct-2014 Alan Viverette <alanv@google.com> Slow down ripple background fade in from press

BUG: 17433613
Change-Id: Ie9c4046532d61ad8ef8e044d14557db5d52e0d0b
/frameworks/base/graphics/java/android/graphics/drawable/RippleBackground.java
8bdb44270323ec8b665d26322fe67cd307719904 25-Sep-2014 Alan Viverette <alanv@google.com> Cut ripple background alpha in half

Ripple alpha is supposed to be split evenly between the foreground
ripple layer and the background layer, but the background alpha wasn't
getting adjusted properly.

BUG: 17658817
Change-Id: I7af2f2ed38400a40d4a17da020363c7ae5c71a7b
/frameworks/base/graphics/java/android/graphics/drawable/RippleBackground.java
2ae56403542582bd39c0e522bf29844d59300f37 15-Sep-2014 Alan Viverette <alanv@google.com> Reduce overdraw after clearing ripples in RippleDrawable

We only need to force a transparent draw after canceling a render
thread accelerated animation, and then we can draw again without
the transparency to avoid overdraw in the display list.

BUG: 17451761
Change-Id: I640f9a29d0940a93802f14a15f27d2c2072755ce
/frameworks/base/graphics/java/android/graphics/drawable/RippleBackground.java
a3f0c2b21a73a82a919abe247c4046d114f3712c 05-Sep-2014 Alan Viverette <alanv@google.com> Simplify ripple background drawing, fix ripple alphas

Eliminates an extra saveLayer on the background in the common case of
a rectangle-bounded ripple.

Ripples and backgrounds are now drawn at 50% opacity of the ripple
color, which ensures that both the ripple and background are visible
and that the pressed state has a correct combined alpha.

Also fixes a bug where hardware (RT) animation was getting turned off
prematurely.

BUG: 17405007
BUG: 17398089
BUG: 17394445
BUG: 17389859
Change-Id: Idb5808368fe563581a51a8cb9778275ee8d22f4c
/frameworks/base/graphics/java/android/graphics/drawable/RippleBackground.java
a2362c9251af9d27506aa12f49da42e019665555 04-Sep-2014 Alan Viverette <alanv@google.com> Clear ripple animations on cancel/end

This prevents subsequent calls to end() from snapping the background
opacity (among others) back to 1.

BUG: 17357749
BUG: 17349157
Change-Id: I2a4870ed588ba98986428983bf29b556cdc9a701
/frameworks/base/graphics/java/android/graphics/drawable/RippleBackground.java
94b88e7103b0ce7a1bb1f79156b5fdc07f1c90b4 03-Sep-2014 Alan Viverette <alanv@google.com> Merge "Remove partial support for hotspot changes on focus movement" into lmp-dev
a8a8ff000b2902eb4e187e62be39fd9535c6c839 03-Sep-2014 Alan Viverette <alanv@google.com> Remove partial support for hotspot changes on focus movement

Also removes unused x/y position and tween values on RippleBackground. The
background is now always centered within the hotspot area.

BUG: 17300399
Change-Id: I1904c9f44e6bebb2b434d2b092205edd42204263
/frameworks/base/graphics/java/android/graphics/drawable/RippleBackground.java
be0dd99bac781d1dd73cb67f33bcd931e3693af5 03-Sep-2014 Alan Viverette <alanv@google.com> Make sure ripple background bounds are used for invalidation

BUG: 17349157
Change-Id: Ie88fbabbc66349aea9b7d00e28ca12f93776a4a7
/frameworks/base/graphics/java/android/graphics/drawable/RippleBackground.java
be50bd76a993b8575828df2fafab4bc5ec9de99b 30-Aug-2014 Alan Viverette <alanv@google.com> Merge "Fix disappearing ripple background, treat active ripple separately" into lmp-dev
7ff48839b0149eba1ab46cfd1476854c2e664a81 30-Aug-2014 Alan Viverette <alanv@google.com> Variety of small UI tweaks

Updates dialog padding, text opacities on dark theme, progress bar
opacity, ripple background exit speed, remove unnecessary text color
attribute from action menu item layout, fix secondary and tertiary
disabled state text colors.

BUG: 17321765
BUG: 17333263
BUG: 17322159
BUG: 17330086
Change-Id: I14473a985b2c6b853afe7db535a2443e934238e9
/frameworks/base/graphics/java/android/graphics/drawable/RippleBackground.java
fdbb98e56d4668c7bfa8de59c3c438c0cb69a535 29-Aug-2014 Alan Viverette <alanv@google.com> Fix disappearing ripple background, treat active ripple separately

There is only a single background, and it did not correctly handle
enter() being called while exit() was busy animating. We now cancel
all animations when starting an enter or exit. Also separates the
active ripple from the list of animating (exiting) ripples.

BUG: 17042060
BUG: 17281011
Change-Id: I4d4e33560867c7c71c1bdb72b17d52d6fbd86f68
/frameworks/base/graphics/java/android/graphics/drawable/RippleBackground.java
d78a44576c6bac5541e04c1f38599d43c9943653 21-Aug-2014 Alan Viverette <alanv@google.com> Jump drawable state (including ripples) on view detach

BUG: 15350931
Change-Id: I09928f59fb7b9f6d87b1f5219353a41ae6b5681d
/frameworks/base/graphics/java/android/graphics/drawable/RippleBackground.java
036a66596dba32c051a016ca9b5334fbbd39c220 07-Aug-2014 Alan Viverette <alanv@google.com> Add an extra pixel to the ripple radius used for bounds

BUG: 16850241
Change-Id: I0f3a046100c104a6321ca7eb24cd0295878e4f47
/frameworks/base/graphics/java/android/graphics/drawable/RippleBackground.java
6ce6d70f9c78f0197f1369246bf55a5f6b8d7ba4 25-Jul-2014 Alan Viverette <alanv@google.com> Separate background from ripple for better focus/press UX

Regresses the "jump" when focus changes, since the background position
is static and we don't have any reasonable UX spec for this yet.

BUG: 16323640
Change-Id: I7152546ed08375864174049b342653b3c4d3d9fb
/frameworks/base/graphics/java/android/graphics/drawable/RippleBackground.java