History log of /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ButtonSwitcher.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6912342a48b9ebf6f4dcd714b697eadac48afbde 08-Jul-2013 Jean Chalard <jchalard@google.com> Fix a bug with bad view reuse.

There are many ways to fix this problem but this is the most
direct way. Removing a view from the cache when any animation
is started will ensure it won't be used again, and will be garbage
collected when it's possible. Since views are created on demand
anyway, a new one will just get created when needed, and that's
it.

Bug: 9400128
Change-Id: I4945d2859d642e79694d51ae90cf4f5bde9a5f1d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ButtonSwitcher.java
2b34b4eab6b04299205f47a92311d4d00f9d805f 28-May-2013 Jean Chalard <jchalard@google.com> Rub some butter on dictionary list scrolling.

The default implementation for preferences refuses to
cache the views for custom preferences at all. We can
do it, but the system won't do it for us, so this does it.
This makes the screen scrolling smooth again.

Incidentally it also fixes the bug where the button may
not animate on the first element.

Bug: 8882722
Bug: 8883108
Change-Id: I9b2306ac4bf93761a808ebfee3477a65f017cddf
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ButtonSwitcher.java
d4fc13d261c77b3ccf6847e69d28cb2da583fd5c 24-Apr-2013 Jean Chalard <jchalard@google.com> [PB9] Make buttons that animate-out unclickable

Clicking on a button that is animating-out is only done by
mistake. Better make them unclickable.
Also, interrupt an out-in animation if it has been preempted.

Bug: 7600384
Change-Id: Ic4700cda46a894ea580bc67ee7bef885ecf1d3bc
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ButtonSwitcher.java
513c63e877320bca4860dadc88e3a14ffb861e36 24-Apr-2013 Jean Chalard <jchalard@google.com> [PB8] Add an animation upon status change.

Bug: 7600384
Change-Id: If5efb9357075193d10255187008e870e2933bdb8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ButtonSwitcher.java
2d72590ced449e1ba0065bf63c311dae805c8290 24-Apr-2013 Jean Chalard <jchalard@google.com> [PB7] Export animation code out of the preference

Bug: 7600384
Change-Id: I8009b31d96646acd667db410b94e969daea91d52
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ButtonSwitcher.java
2cf450f48283bcf1452cb717b7ae3a9f0c729105 24-Apr-2013 Jean Chalard <jchalard@google.com> [PB6] Encapsulate the buttons into a view

Handling buttons directly in the preference causes large
problems of code readability and interface. It's better to
have a class to manage the buttons and their animations
separately. This is feature-equivalent, and mostly
delegates stuff for now.

Bug: 7600384
Change-Id: Ia8da0ec68ffac84fc1d65e1760539a87a73fa776
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ButtonSwitcher.java