PullToRefresh-ListView icon indicating copy to clipboard operation
PullToRefresh-ListView copied to clipboard

ptr_header.xml should include layout_width/layout_height or it will cause exception

Open johnvuong20000 opened this issue 11 years ago • 0 comments

I have added it like here:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" style="@style/ptr_headerContainer" android:layout_width="wrap_content" android:layout_height="wrap_content"> <RelativeLayout android:id="@+id/ptr_id_header" style="@style/ptr_header"> <ImageView android:id="@+id/ptr_id_image" style="@style/ptr_arrow" /> <ProgressBar android:id="@+id/ptr_id_spinner" style="@style/ptr_spinner" />

    <LinearLayout android:id="@+id/ptr_id_textwrapper" style="@style/ptr_textwrapper">
        <TextView android:id="@+id/ptr_id_text" style="@style/ptr_text"
            android:layout_height="wrap_content"
            android:layout_width="wrap_content" />
        <TextView android:id="@+id/ptr_id_last_updated" style="@style/ptr_last_updated"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
    </LinearLayout>
</RelativeLayout>

main.xml should add these too.

johnvuong20000 avatar Oct 21 '14 01:10 johnvuong20000