android weird (at least for me) behaviour of contr

2019-08-30 03:01发布

问题:

This should be simple but I can't find a solution: I have a custom view and it scales to 200% if the user clicks on it. It stays on that size until the user clicks on it again.

That works, but only in the old (=smaller) area of the control. It seems that it is not existent (although it is shown) in the area which it now covers. Do I need to call some method after scaling to fix my problem?

Thank you!

回答1:

After a lot of investigating I am quite sure this is a bug in android 2.3.1. As a workaround I set the new size of the view at the end of the ScaleAnimation manually.