android weird (at least for me) behaviour of contr

2019-08-30 03:04发布

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条回答
混吃等死
2楼-- · 2019-08-30 03:37

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.

查看更多
登录 后发表回答