开发者

How to repeat a backround image for listview

开发者 https://www.devze.com 2023-02-20 16:43 出处:网络
I have dynamic no of list items to display in a ListView. I am using a background image (fixed height).

I have dynamic no of list items to display in a ListView. I am using a background image (fixed height).

I want to repeat this image when list items are too many.

How c开发者_StackOverflow社区an I achieve this?


Why don't you just set the background in your activity (android:background="@drawable/background") and then let the list scroll "over" it? And then set the CacheColorHint of the ListView to #0000 (android:cacheColorHint="#0000")

0

精彩评论

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