Threshold for showing View in Android -


i have ui layout that's comprised of single outer layout contains 3 internal layouts. internal layouts header, body , footer.

i cause top, header view become hidden if it's forced shrink past threshold. contains logo image, , if shrinks past point, i'd rather hide completely.

what's best way this? there way accomplish statically in layout xml? if not, need subclass view , listen resizes? there way?

subclass view override onlayout or onmeasure methods. when view decides width , height. after onmeasure completed, can call this.getmeasuredheight() , check if below threshold. if is, hide it.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -