Want to get width of View(LinearLayout) at Runtime in Android -


how can dynamic width of linearlayout @ runtime?

i mean, want width of linearlayout @ runtime , when linearlayout visibility "gone" , linearlayout width "match_parent" in xml layout file.

i can width using ongloballayoutchangelistener , onpredrawlistener if our view(linearlayout) "visible" state, not @ "gone" state.

is here solution problem?

thank time.

simply fetch reference linearlayout lets call "ll" , call "ll.getwidth()" gives thewidth in pixels...


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

excel - I can't get the attachement of the email PHP -

node.js - Express and Redis - If session exists for this user, don't allow access -