阅读背景:

如何获取onCreate方法或其中的布局高度,以便再次设置子项?

来源:互联网 

Ofcourse I know it returns 0 measures until it is drawn to window. But I need to get the height of the layout and accordingly the child views should get adjusted. Below is my code snippet.In this class I am generating 36 edittexts using adapter class. So I need to get the height of the layout according to the screen to adjust the edittexts. Screen height would not be helpful for my app. Any code snippet would be greatly appreciated. Thanks in advance.Ofcourse I know it returns 0 measures until it




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

分享到: