在 ExpandableListView 中添加 textview 和按钮

发布于 2024-12-22 14:35:14 字数 353 浏览 2 评论 0原文

我们如何在可扩展列表视图中添加 TextView 和按钮。 就像解释的那样 根是分支名称 第一个叶子是地址 第二个叶子是电子邮件 第三片叶子是电话号码。 第四叶一些细节

我得到了分支并将其加载到 ExpandableListView 中。 可扩展列表视图应该有许多文本视图,例如姓名、地址、电子邮件和电话号码。 在电子邮件和电话号码的文本视图旁边会有按钮。以便打电话或发邮件。(每片叶子旁边都会有一个按钮) 请让我知道有关如何在可扩展列表视图中拥有多个 TextView 的任何教程或示例。我正在从数据库获取 ListViews 数据。 可编辑列表视图动态增长。 期待你的答复。 谢谢。

how could we add TextView and button in Expandable List View.
Like explained
Root is Branch name
first leaf is Address
second leaf is Email
third leaf is phone number.
fourth leaf some details

I get branches and it gets loaded into ExpandableListView.
Expandable Listview should have many TextViews like Name, address, email and telephone number.
Next to Textview of Email and Phone number there would be buttons. So as to make calls or to mail them.(next to every leaf there will be a button)
Please let me know any tutorial or examples on how to have many TextViews inside Expandable List View. I am getting ListViews data from database.
The Editable ListView grows dynamically.
Looking forward to your reply.
thanks.

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

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

发布评论

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

评论(1

剧终人散尽 2024-12-29 14:35:14

您必须制作自己的自定义可扩展列表。

请查看此链接:

http://mylifewithandroid.blogspot.com/2010/12/expandable-list-and-checkboxes.html

它应该可以帮助你完成..

You have to make your own custom expandable list..

Have a look at this link:

http://mylifewithandroid.blogspot.com/2010/12/expandable-list-and-checkboxes.html

It should help you through..

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