Listview-Elemente mit abgerundeten Ecken

Ich versuche zu machen listview-Elemente rechteckige Form mit abgerundeten Ecken aber was geschieht mit mir, nur die erste Reihe kommt mit abgerundeten Ecken auf den oberen Teil, der rest des Kind listview-Elemente kommt in rechteckige Formen mit nicht abgerundeten Ecken. Ich weiß nicht, warum dies geschieht.

Hier ist meine listview-codes:

<ListView
    android:id="@+id/listViewdoctorwithappointment"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginLeft="7dp"
    android:layout_marginRight="7dp"
    android:layout_marginTop="10dp"
    android:minHeight="80dp"
    android:background="@drawable/customshapeduplicate"
    android:cacheColorHint="@android:color/transparent"
    android:divider="#4F94CD"
    android:dividerHeight="10dp"

    android:smoothScrollbar="true"

    android:listSelector="@drawable/selector"
    android:scrollbars="none" >
</ListView>

Und Hier ist mein customshapeduplicatefile ist diese:

<shape xmlns:android="http://schemas.android.com/apk/res/android" 
    android:shape="rectangle"> 
    <gradient android:startColor="#ffffff" android:endColor="#ffffff" 
        android:angle="270"/> 

    <corners android:bottomRightRadius="10dp" android:bottomLeftRadius="10dp" 
        android:topLeftRadius="10dp" android:topRightRadius="10dp"/> 
</shape> 

- Und dies ist das Bild:

Listview-Elemente mit abgerundeten Ecken

set Runde Form-layout für die Liste posten

InformationsquelleAutor abh22ishek | 2013-03-11

Schreibe einen Kommentar