0

このライブラリを使用して、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"
/> 
4

1 に答える 1

0

私はそれを修正する方法を理解しました。リストビューの周りにLinearLayoutを追加しただけです。

于 2012-09-22T17:22:35.433 に答える