【问题标题】:How to set color mTitles Array in that API demo?如何在该 API 演示中设置颜色 mTitles 数组?
【发布时间】:2011-11-24 23:26:56
【问题描述】:

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List6.html

在上面的链接中,如何将颜色设置为 mTitles 字符串。

【问题讨论】:

  • 你的问题不太清楚

标签: android


【解决方案1】:

你应该可以在 getview 函数中做类似的事情

TextView title = (TextView)sv.getChildAt(0);
title.setBackgroundColor(Coor.RED);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-12-24
    • 1970-01-01
    • 2012-12-16
    • 1970-01-01
    • 2019-08-31
    • 1970-01-01
    • 2016-03-21
    相关资源
    最近更新 更多