阅读背景:

相对布局没有正确地更新自定义视图的宽度

来源:互联网 

I have this container class that is used to make one of the dimensions, either the width or height, a ratio of the other dimension. For instance, I want a 16:9 layout container where the width is "match_parent". However, when using the height as "match_parent", Android does not seem to properly relayout itself. When I set the height to be a ratio of the width everything is fine! Vise versa and it doesn't work. What's going on? I have this container class that is used to mak




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: