【问题标题】:BaseExpandablelist different groups with different backgroundsBaseExpandablelist 不同背景的不同组
【发布时间】:2012-01-02 12:24:44
【问题描述】:

我正在制作一个带有部分的列表视图,使用 BaseExpandableListAdapter 并使组不折叠。现在我希望不同的组(包括标题和行)有不同的背景,这可能吗?我只能为标题或行提供背景,但不能为整个组提供背景。

【问题讨论】:

    标签: android expandablelistview expandablelistadapter


    【解决方案1】:

    是的。如果您自定义了BaseExpandableListAdapter,这是可能的。 从以下网址查看自定义可扩展列表视图示例 http://about-android.blogspot.com/2010/04/steps-to-implement-expandablelistview.html

    【讨论】:

    • 我想要整个组的背景,包括标题和行,通过使用 getGroupView 方法我只能自定义组的标题。
    猜你喜欢
    • 2015-08-14
    • 1970-01-01
    • 2014-06-13
    • 2015-09-19
    • 1970-01-01
    • 2018-12-27
    • 2017-06-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多