How to hide elements in a graphic layout?

I have elements in my view that appear on the click and do not appear at the beginning of this action. Now everything works fine, but when I use the graphical layout tool, I see these elements, and this makes it difficult to work with it.

Meaning, I have a ListView with elements, I see these elements on top of everything.

How can I hide these elements? setting the transparency of the program without helping. Should I do something like setting alpha to 0 and then adding it instead of making the elements invisible? It seems like a dumb idea, there must be some option that I do not see.

Help someone?

Thanks Eric

+5
source share
2 answers

"": android:visibility="gone"? .

, , ViewStub, " ' . A ViewStub () . .

+22

/, XML, , , , ? :

element.setVisibility(View.GONE);
+6

All Articles