Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想隐藏现有 XML 中的一些字段并将该 XML 用作另一个活动的输入
提前致谢.....
只需定义实际在您的 xml 中的所有字段。当您想隐藏一个(例如文本视图)时,请执行以下操作:
textview1.setVisibility(View.GONE);
带回使用:
textview1.setVisibility(View.Visible);