列表视图边框的选择 [英] listview border's selector
问题描述
在模拟器2我有一个圆形的边框列表视图(这是对我很好),但是当我尝试滚动列表视图,边框的转角改变了我使用list_selector为(如模拟器1所示)。我应该怎么做这里保持边框的圆润每次当我尝试滚动列表视图?
In emulator 2 I have a rounded border listview (it's fine for me), but when I try scrolling, the listview, the border's corner changed (as seen in the emulator 1) I use list_selector for that. What should I do here for keeping border's rounded everytime when I try scroll the listview?
这个例子的code
推荐答案
请考虑阅读这篇文章,我昨天回答,以完全相同的<一个href="http://stackoverflow.com/questions/8396253/how-set-different-listselector/8396428#8396428">question.
Please consider to read this post, I answered yesterday to the exact same question.
从本质上讲,你应该修改你的适配器,并使其接受3种不同类型的项目(上,下,中),然后改变getView。
Essentially you should modify your adapter and make it to accept 3 different type of items (up, down, mid) and then change the getView.
这篇关于列表视图边框的选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!