android panellistview 圆角实现代码


(效果如上图所示)

其实很简单:

比方说上面的容器是一个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" />

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

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


« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3