首页 > 系统 > Android > 正文

android panellistview 圆角实现代码

2019-10-24 21:09:47
字体:
来源:转载
供稿:网友
android panellistview 圆角是每一个android开发者都具备的一项,对于新手朋友来说可能有点难度,接下来将详细介绍,需要了解的朋友可以参考下
 

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" /> 

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

 

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


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表