2012-09-22 22 views
0

Link to project拉至請求包括我使用這個庫來實現一個拉請求的ListView其他視圖

結果看起來相當不錯,但我面臨的一個問題。 如果我拖動列表視圖重新加載它,箭頭出現,所有工作正常。 但它涵蓋了整個其他意見。所以在刷新過程中,其他視圖消失並在刷新完成後顯示。這看起來很難看。有人給我一個提示如何避免這一點。

這是我的佈局:

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:id="@+id/help" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:background="#ffffff" 
android:orientation="vertical" > 

<LinearLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:background="#ffffff" 
    android:orientation="horizontal" 
    android:paddingBottom="2dp" 
    android:paddingLeft="10dp" 
    android:paddingTop="2dp" > 

    <TextView 
     android:id="@+id/tv_sorting" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:text="@string/newest_title" 
     android:textColor="#000000" 
     android:textSize="14dp" /> 

    <TextView 
     android:id="@+id/tv_language" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:text="" 
     android:textColor="#000000" 
     android:textSize="14dp" /> 
</LinearLayout> 

<TextView 
    android:id="@+id/balken" 
    android:layout_width="fill_parent" 
    android:layout_height="3sp" 
    android:background="@color/main_color" > 
</TextView> 



<eu.erikw.PullToRefreshListView 
    android:id="@+id/pull_to_refresh_listview" 
    android:layout_height="0dip" 
    android:layout_width="fill_parent" 
    android:layout_weight="2" 
    android:cacheColorHint="#00000000" 
    android:divider="@null" 
    android:dividerHeight="0dp" 
/> 

回答

0

我已經找到了如何解決它。 我只是在列表視圖周圍添加了一個LinearLayout。