Линии ListView, похожие на разделители, накапливаются при прокрутке списка. - PullRequest
1 голос
/ 28 января 2012

multiple lines appearing at the top of list view as i scroll несколько строк показаны красным кружком

Я приложил изображение, которое показывает несколько линий, похожих на разделители, в верхней части представления списка, я не уверен, как и почему они появляются в моем оставленном списке. Они появляются, как правило, только когда я прокручиваю список. место отмечено красным кружком. Вы также заметили, что миниатюра видео размыта внизу по той же причине.

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/white"
> 
<Gallery 
    android:id="@+id/gallery" 
    android:layout_width="fill_parent" 
    android:layout_marginTop="10dip"
    android:layout_marginBottom="10dip"
    android:layout_height="wrap_content"></Gallery>       
 <ListView 
         android:id="@id/android:list"
         android:layout_below="@id/gallery"
         android:layout_width="fill_parent" 
         android:cacheColorHint="#00000000"
         android:paddingBottom ="55dip"
         android:divider="@color/listdivider"
         android:dividerHeight="1px"
         android:layout_alignWithParentIfMissing="true"
         android:layout_height="fill_parent"/>

<!-- bottom buttoms -->
 <LinearLayout
     android:layout_width="fill_parent"
     android:layout_height="50dip"
     android:orientation="horizontal"
     android:layout_alignParentBottom="true"
     android:weightSum="3">
 ......
 </LinearLayout>
 </RelativeLayout>

мой список и ниже приведен row.xml, из которого я надуваю представление

<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/white"
android:paddingLeft="5dip"
android:paddingRight="5dip"
android:paddingTop="10dip"
>  


<LinearLayout

android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="@drawable/greyborder_with_solid_white"
>  
.......
</LinearLayout>
</LinearLayout>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...