ITeye博客

Android 实现圆形Panel ListView

thunder_yan · 2012-12-04 18:32 · Android · 移动开发 · Markdown

(效果如上图所示)

 

其实很简单:

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

 

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

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

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。