simple_load_more.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:layout_width="match_parent"
  5. android:layout_height="@dimen/dp_40">
  6. <LinearLayout
  7. android:id="@+id/load_more_loading_view"
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:gravity="center"
  11. android:orientation="horizontal">
  12. <ProgressBar
  13. android:id="@+id/loading_progress"
  14. android:layout_width="wrap_content"
  15. android:layout_height="wrap_content"
  16. style="?android:attr/progressBarStyleSmall"
  17. android:layout_marginRight="@dimen/dp_4"/>
  18. <TextView
  19. android:id="@+id/loading_text"
  20. android:layout_width="wrap_content"
  21. android:layout_height="wrap_content"
  22. android:layout_marginLeft="@dimen/dp_4"
  23. android:text="@string/loading"
  24. android:textColor="@android:color/black"
  25. android:textSize="@dimen/sp_14"/>
  26. </LinearLayout>
  27. <FrameLayout
  28. android:id="@+id/load_more_load_fail_view"
  29. android:layout_width="match_parent"
  30. android:layout_height="match_parent"
  31. android:visibility="gone">
  32. <TextView
  33. android:id="@+id/tv_prompt"
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:layout_gravity="center"
  37. android:text="@string/load_failed"/>
  38. </FrameLayout>
  39. <FrameLayout
  40. android:id="@+id/load_more_load_end_view"
  41. android:layout_width="match_parent"
  42. android:layout_height="match_parent"
  43. android:visibility="gone">
  44. <TextView
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:layout_gravity="center"
  48. android:text="@string/load_end"
  49. android:textColor="@android:color/darker_gray"/>
  50. </FrameLayout>
  51. </FrameLayout>