0

Im pretty new at programming android and this is my problem:

I have a layout page that i have alot of information on, including buttons and textedits. Now i want to split it up in different parts, without having to create different layouts for every headline. So for example, if i choose to see "Information 3" i want to hide everything else on the layout except the "information 3 text/buttons/textedits".

Is it possible to do this? Because i really dont have time for making a new layout for every headline, and i dont want to show every headline at the same time. (I want to keep all information/data in the same layout file)

Maybe there is a smarter way to do it? Thanks in advance! /Erik

4

1 回答 1

0

如果你想从布局中移除它,你可以调用 view.setVisibility(View.GONE) 。您可以搜索更多类似以下的问题:

  1. 单击按钮隐藏/显示

  2. 如何显示隐藏分组视图

试试这些,如果你需要更多帮助,请告诉我

于 2013-10-20T13:54:54.573 回答