How to get height of Layout, fiiled with elements programmatically

AdeptusAdeptus TRMember ✭✭

Hello to all programmers. While I create app for android, I met one problem. I want to create LinearLayout programmatically. Then I want to fill it with different elements programmatically. After that I want to get height of this LinearLayout to use it in future (for animation, for example) and set it's visibility to gone. All this actions I do in OnCreate of Activity, so if I try get height, I got 0. Can anybody help me with this. All suggestions will be appreciated.

Sign In or Register to comment.