Android - TableLayout 到 ExpandableListView

发布于 2024-09-02 17:28:28 字数 122 浏览 1 评论 0原文

是否可以从 TableLayout 切换到 ExpandableListView?如何?我尝试使用 ViewFlipper,但 ExpandableListView 不使用 XML 的事实给它带来了麻烦。

请帮忙!

Is it possible to switch from a TableLayout to an ExpandableListView? How? I tried using ViewFlipper but the fact that ExpandableListView doesn't use XML threw a wrench in it.

Please help!

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

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

发布评论

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

评论(1

以为你会在 2024-09-09 17:28:28

我不太明白这个问题是什么意思

从 TableLayout 切换到
可扩展列表视图

但是ExpandableListView可以在xml中定义就好了

   <ExpandableListView
        android:id="@+id/myList"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
   />

I'm not really understand the question in a sense of what do you mean by

switch from a TableLayout to an
ExpandableListView

But ExpandableListView can be defined in xml just fine

   <ExpandableListView
        android:id="@+id/myList"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
   />
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文