打开时listView显示tick图标

发布于 2025-02-10 21:12:55 字数 142 浏览 2 评论 0 原文

我假设我有活动A,活动B和活动C。 B或活动C如下面的示例图像。

示例

I assume that I have activity A, activity B, and activity C. in activity A there is a listview that displays the name of activity B and C. how do I display the tick icon on the listview in activity A when I finish opening activity B or activity C like the example image below.

example

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

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

发布评论

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

评论(1

骄兵必败 2025-02-17 21:12:55

imageView 添加到 ListView 项目布局的右侧,并在调用 startActivity()之后将其设置为可见。或者,如果这使得值得太早可见,则可以使用 startActivityForresult(),它将允许您仅在返回到 imageView 的可见性。 >活动 A.如果您的 listView 不使用自定义项目布局,则需要学习如何做

Add an ImageView to the right side of your ListView item layout and set it to be visible just after calling startActivity(). Or, if this is making the checkmarks visible too soon, you can use startActivityForResult(), which will allow you to set the ImageView's visibility only upon returning to Activity A. If your ListView isn't using custom item layouts, you'll need to learn how to do that.

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