Android GalleryView 包含可滚动视图,例如 ListView

发布于 2024-09-10 20:18:37 字数 212 浏览 1 评论 0原文

我设法实现了 GalleryView,创建了一个自定义适配器,为图库的每个项目返回一个 ListView,但现在的问题是:

虽然我可以垂直滚动列表视图,但我无法再水平滚动 GalleryView。

我的目标是一个类似于谷歌天气/新闻应用程序的用户界面。虽然您可以单击顶部的“类似选项卡”的图库项目,但您也可以水平滚动代表新闻项目的列表视图。

我怎样才能实现这个?

I managed to implement a GalleryView, create a custom Adapter that returns a ListView for each item of the gallery but now the the problem:

I while I can scroll the listview vertially, I can no longer scroll the GalleryView horizontally.

What I am aiming at is a UI similar to the Google Weather/News application. While you can click a 'tab-like' gallery item on the top, you can also horizontally scroll the list views that represent the news items.

How can I implement this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

焚却相思 2024-09-17 20:18:37

我不知道 Google 天气/新闻应用程序,但如果我理解正确的话,ViewFlipper/ViewAnimator 可以帮助您。

I don´t know the Google Weather/News app, but if I understand you correctly a ViewFlipper/ViewAnimator could help you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文