简体   繁体   English

Android-单击按钮即可显示内容

[英]Android - showing content on button click

I am creating an android application for an event and one of the needs is to show a table of events. 我正在为事件创建一个android应用程序,需求之一就是显示事件表。 The problem is I want to be able to show event content on a button click. 问题是我希望能够在单击按钮时显示事件内容。 The events table I was given is pretty complicated because during the speaker panels there are 5 events going on at the same time. 我得到的事件表非常复杂,因为在扬声器面板上同时发生5个事件。 I thought a good way to show this could be similar to in HTML/javascript how you can have a tile view and when you click it you show a hidden Div. 我认为,一种很好的显示方式可能类似于HTML / javascript中如何显示图块视图,并且单击它时会显示一个隐藏的Div。

Is there anyway to get this kind of effect in android? 无论如何,要在android中获得这种效果? I want there to be a label of some sort that spans the parent and I can click it and content will populate underneath it. 我希望有一个跨父类的标签,我可以单击它,内容将填充在父标签下。 Any ideas? 有任何想法吗?

您可以通过动态添加项目通过ListViewTableLayoutGridView进行操作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM