refresh_head.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/head_view"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="@color/transparent" >
  7. <RelativeLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content"
  10. android:layout_alignParentBottom="true"
  11. android:paddingBottom="20dp"
  12. android:paddingTop="20dp" >
  13. <RelativeLayout
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content"
  16. android:layout_centerInParent="true" >
  17. <ImageView
  18. android:id="@+id/pull_icon"
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"
  21. android:layout_centerVertical="true"
  22. android:layout_marginLeft="60dp"
  23. android:background="@drawable/pull_icon_big" />
  24. <ImageView
  25. android:id="@+id/refreshing_icon"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:layout_centerVertical="true"
  29. android:layout_marginLeft="60dp"
  30. android:background="@drawable/list_load_refresh"
  31. android:visibility="gone" />
  32. <TextView
  33. android:id="@+id/state_tv"
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:layout_centerInParent="true"
  37. android:text="@string/pull_to_refresh"
  38. android:textColor="@color/text_search"
  39. android:textSize="16sp" />
  40. <ImageView
  41. android:id="@+id/state_iv"
  42. android:layout_width="wrap_content"
  43. android:layout_height="wrap_content"
  44. android:layout_centerVertical="true"
  45. android:layout_marginRight="8dp"
  46. android:layout_toLeftOf="@id/state_tv"
  47. android:visibility="gone" />
  48. </RelativeLayout>
  49. </RelativeLayout>
  50. </RelativeLayout>