android panellistview 圆角实现代码

 更新时间:2012年12月06日 10:05:28   作者:  
android panellistview 圆角是每一个android开发者都具备的一项,对于新手朋友来说可能有点难度,接下来将详细介绍,需要了解的朋友可以参考下

(效果如上图所示)

其实很简单:

比方说上面的容器是一个ListView

复制代码 代码如下:

<ListView
android:id="@+id/listView_devices"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
<SPAN style="COLOR: #ff0000"> android:background="@android:drawable/dialog_frame"</SPAN>
android:cacheColorHint="@color/transparent" />

红色的那段代码是重点哦.

这样很简单的一行代码就可以实现啦.

相关文章

最新评论