android 缩放后控制的奇怪(至少对我来说)行为/不接受整个区域的输入
这应该很简单,但我找不到解决方案: 我有一个自定义视图,如果用户单击它,它会缩放到 200%。它会保持该大小,直到用户再次单击它。
这有效,但仅限于控件的旧(=较小)区域。它似乎在它现在覆盖的区域中不存在(尽管已显示)。 缩放后是否需要调用某些方法来解决我的问题?
谢谢你!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过大量调查后,我非常确定这是 android 2.3.1 中的一个错误。
作为解决方法,我在 ScaleAnimation 末尾手动设置视图的新大小。
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.