【问题标题】:How can I change the Color of an Listview Item in Delphi(Firemonkey Android)如何在 Delphi(Firemonkey Android) 中更改 Listview 项的颜色
【发布时间】:2014-03-25 09:13:00
【问题描述】:

如何在 Firemonkey (Delphi Android) 中更改 ListView 项的背景颜色? Listview 本身可以设置为透明,但如果我添加一个 Item 它有白色背景/

【问题讨论】:

    标签: android delphi listview firemonkey delphi-xe5


    【解决方案1】:

    我认为您需要在样式设计师中执行此操作

    右键单击 TListView 控件并选择“编辑自定义样式”。在 Style "Structure" Treeview 中选择 itembackground 属性并将颜色设置为 Null。

    记得在TListView的属性检查器StyleLookup参数中选择新创建的ListViewStyle

    【讨论】:

      【解决方案2】:

      也许你可以尝试添加一个 TImage 组件作为你的项目的背景。然后在其中加载正确大小和颜色的位图。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-06-22
        • 2020-08-29
        • 2015-03-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多