Android:将 ImageButton 与 ListView 结合使用
我深入研究了 Android 文档,该文档对于我的问题有些模糊。是否可以使用 SimpleExpandableListAdapter 将 ImageButton 覆盖在 ListView 上?如果是这样,请为我指明正确的方向(代码示例或技术规范)将不胜感激。
附加说明:我正在设计/开发一个原型课件应用程序模板,用于高级学位课程。对于这个特定部分,屏幕的上 2/3 将包含一个使用 SimpleExpandableListAdapter 的 ListView,该 ListView 从资源文件(文本文件,以便更容易填充/修改)中提取课程方向、活动和评估工具等项目。下 1/3 将由图像按钮组成,用于控制其他课程功能的流程,例如 RSS 提要、访问学校网站,以及箭头按钮,用于更改屏幕上 2/3 的内容,同时保留下 1/3 的内容/3 屏幕保持原样。本质上,是位于屏幕下 1/3 的定制 GUI 菜单系统。因此,我们希望确定在 ListView 上分层 ImageButtons 在技术上是否可行。提前致谢。
I’ve delved into the Android documentation that is somewhat nebulous regarding my question. Is it possible to overlay an ImageButton over a ListView employing a SimpleExpandableListAdapter? If so, pointing me in the right direction (code example or technical specs) would be most appreciative.
Additional clarification: I’m designing/developing a prototype courseware app template to be used in advanced degree programs. For this specific piece, the upper 2/3 of the screen will contain a ListView employing a SimpleExpandableListAdapter that pulls such items as lesson orientation, activities, and assessment instruments from a resource file (text file to make it easier to populate/modify). The lower 1/3 will be comprised of ImageButtons that control the flow of other lesson functions such as RSS feeds, access to school Websites, and arrow buttons that will change the contents of the upper 2/3 of the screen while leaving the lower 1/3 screen as is. In essence, a customized GUI menu system at the lower 1/3 of the screen. Thus, looking to determine if it is technically feasible to layer ImageButtons over a ListView. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论