All Products
Search
Document Center

Net error page

Last Updated: May 25, 2021

AUNetErrorView (formerly APFlowTipView) provides a blank page indicating that there is a network exception.

Sample image

Dependency

See Quick start.

API description

 
  1. /**
  2. * Set the simple mode.
  3. * @param isSimple
  4. */
  5. public void setIsSimpleType(boolean isSimple);
  6. /**
  7. * Set the network exception mode.
  8. * @param type
  9. */
  10. public void resetFlowTipType(int type);
  11. /**
  12. * Set the button properties.
  13. *
  14. * @param text
  15. * @param clickListener
  16. */
  17. public void setAction(String text, OnClickListener clickListener) ;
  18. /**
  19. * Set the Cancel button.
  20. */
  21. public void setNoAction();
  22. /**
  23. * Set prompt message.
  24. *
  25. * @param text
  26. */
  27. public void setTips(String text) ;
  28. /**
  29. * Set the auxiliary prompt message.
  30. * @param text
  31. */
  32. public void setSubTips(String text) ;
  33. /**
  34. * Obtain the Operation button.
  35. * @return
  36. */
  37. public AUButton getActionButton();
  38. /**
  39. * Obtain image view.
  40. * @return
  41. */
  42. public AUImageView getImageView() ;

Custom properties

Property Description
netErrorType Network exception state. Available values: signalError, empty, warning, overflow.
isSimpleMode Whether the simple mode is used. Boolean type.

Sample code

 
  1. <com.alipay.mobile.antui.basic.AUNetErrorView
  2. android:id="@+id/net_error"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. app:netErrorType="signalError"/>