开发者

changing background color of a list view

开发者 https://www.devze.com 2023-01-08 00:39 出处:网络
can anyone help me with changing the background color of a list view?. I am new to android and I really need to know this. Any help will be appreciated.

can anyone help me with changing the background color of a list view?. I am new to android and I really need to know this. Any help will be appreciated.

T开发者_C百科hanks!


You can use the setBackgroundColor() method of the ListView.


would this help for example:

<ListView android:id="@+id/rssListView"
    android:background="#7700CC00"
    android:layout_height="wrap_content"
    android:layout_width="match_parent" />

?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号