android weird (at least for me) behaviour of control after scaling / doesn't accept input in it's whole area

匆匆过客 提交于 2020-01-17 03:49:07

问题


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.



来源:https://stackoverflow.com/questions/4727117/android-weird-at-least-for-me-behaviour-of-control-after-scaling-doesnt-acc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!