https://kotlinlang.org logo
#anko
Title
# anko
a

adeln

02/28/2017, 12:16 PM
remember that it’s not the instantiation that’s expensive, it’s measure + layout passes
k

krokyze

02/28/2017, 12:37 PM
if view is gone, do Android mesure it?
a

adeln

02/28/2017, 12:38 PM
yes, the parent gets remeasured, and that will trigger the remeasure of all the wrap_content children then a layout pass (one if it’s FrameLayout or LinearLayout, two for Relative or Linear + weights)
*match_parent children, sorry
4 Views