解决方案 »

  1.   

    还是使用shape,你想要的时候就动态将背景设置成圆角背景,不想要的时候就动态把圆角背景去掉,换成一个你想要的背景就行了,变通
      

  2.   

    我想你可能是
    主要我不知道你其他代码是什么样子的,但是你这个问题很常见的,其实主要是MATCH_PARENT造成的,你想要显示圆角的布局要和它的父布局隔开一点,我上传个代码你看下
      

  3.   

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical" >
            <ListView 
            android:id="@+id/ufnh_list"
            android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:layout_margin="5dip"
         android:divider="@null">
        </ListView>
    </LinearLayout>
    我的item是带圆角的,但是当我把android:layout_margin="5dip"这句去掉,圆角显示不出来,但是当我把android:layout_margin="5dip"这句加上圆角就有了