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
Post a Comment