pull_to_refresh_header.xml.svn-base 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="fill_parent"
  4. android:layout_height="fill_parent"
  5. android:paddingTop="10dip"
  6. android:paddingBottom="15dip"
  7. android:gravity="center"
  8. android:id="@+id/pull_to_refresh_header"
  9. >
  10. <ProgressBar
  11. android:id="@+id/pull_to_refresh_progress"
  12. android:indeterminate="true"
  13. android:layout_width="wrap_content"
  14. android:layout_height="wrap_content"
  15. android:layout_marginLeft="30dip"
  16. android:layout_marginRight="20dip"
  17. android:layout_marginTop="10dip"
  18. android:visibility="gone"
  19. android:layout_centerVertical="true"
  20. style="?android:attr/progressBarStyleSmallTitle"
  21. />
  22. <ImageView
  23. android:id="@+id/pull_to_refresh_image"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_marginLeft="30dip"
  27. android:layout_marginRight="20dip"
  28. android:visibility="gone"
  29. android:layout_gravity="center"
  30. android:gravity="center"
  31. android:src="@drawable/goicon"
  32. />
  33. <TextView
  34. android:id="@+id/pull_to_refresh_text"
  35. android:text="@string/pull_to_refresh_tap_label"
  36. android:textAppearance="?android:attr/textAppearanceMedium"
  37. android:textStyle="bold"
  38. android:paddingTop="5dip"
  39. android:layout_width="fill_parent"
  40. android:layout_height="wrap_content"
  41. android:layout_gravity="center"
  42. android:gravity="center"
  43. />
  44. <TextView
  45. android:id="@+id/pull_to_refresh_updated_at"
  46. android:layout_below="@+id/pull_to_refresh_text"
  47. android:visibility="gone"
  48. android:textAppearance="?android:attr/textAppearanceSmall"
  49. android:layout_width="fill_parent"
  50. android:layout_height="wrap_content"
  51. android:layout_gravity="center"
  52. android:gravity="center"
  53. />
  54. </RelativeLayout>