loading_lib_view_empty.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <com.yc.loadinglibrary.loading.ClickableNestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="@android:color/transparent"
  6. android:fillViewport="true">
  7. <LinearLayout
  8. android:id="@+id/widget_view_empty_hint_layout"
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"
  11. android:gravity="center"
  12. android:orientation="vertical"
  13. android:paddingBottom="16dp">
  14. <ImageView
  15. android:id="@+id/widget_view_img_empty_hint"
  16. android:layout_width="270dp"
  17. android:layout_height="270dp"
  18. android:adjustViewBounds="true"
  19. android:scaleType="fitCenter"
  20. android:src="@drawable/loading_lib_empty" />
  21. <TextView
  22. android:id="@+id/widget_view_tv_empty_hint"
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:layout_marginTop="12dp"
  26. android:gravity="center"
  27. android:lineSpacingMultiplier="1.25"
  28. android:text=""
  29. android:textColor="#aaaaaa"
  30. android:textSize="16sp" />
  31. <TextView
  32. android:id="@+id/widget_view_btn_error_hint"
  33. android:layout_width="wrap_content"
  34. android:layout_height="40dp"
  35. android:layout_marginTop="20dp"
  36. android:background="@drawable/sp_r20_gradient_primary"
  37. android:gravity="center"
  38. android:paddingLeft="56dp"
  39. android:paddingRight="56dp"
  40. android:text="点击重试"
  41. android:textColor="@color/colorWhite"
  42. android:textSize="16sp"
  43. android:visibility="gone" />
  44. </LinearLayout>
  45. </com.yc.loadinglibrary.loading.ClickableNestedScrollView>