PullToRefresh-ListView
PullToRefresh-ListView copied to clipboard
ptr_header.xml should include layout_width/layout_height or it will cause exception
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.