tags:

views:

347

answers:

1

If i set a views visibility which as been inflated, to gone, will it Speed up my UI?

+1  A: 

It will speed up the actual drawing of the UI, because, well, you don't have to draw it anymore, but it will still be inflated and the inflation process will not be faster.

Isaac Waller
I wonder if a view with visibility GONE is still taking part in the layouting process? i.e., does it measure its size and stuff? That would make it different from a ViewStub.
Matthias
I would assume not, Android is pretty heavily optimized, but you never know.
Isaac Waller
A GONE View is always ignored during layout.
Romain Guy