Error page
Updated at:
AUNetErrorView, formerly known as APFlowTipView, displays a blank page when a network error occurs.
Preview

Dependencies
For more information, see Getting started.
API reference
/**
* Sets the simple mode.
* @param isSimple
*/
public void setIsSimpleType(boolean isSimple);
/**
* Sets the network error pattern.
* @param type
*/
public void resetFlowTipType(int type);
/**
* Sets the button properties.
*
* @param text
* @param clickListener
*/
public void setAction(String text, OnClickListener clickListener) ;
/**
* Removes the action button.
*/
public void setNoAction();
/**
* Sets the tip message.
*
* @param text
*/
public void setTips(String text) ;
/**
* Sets the secondary tip message.
* @param text
*/
public void setSubTips(String text) ;
/**
* Gets the action button.
* @return
*/
public AUButton getActionButton();
/**
* Gets the image view.
* @return
*/
public AUImageView getImageView() ;Custom attributes
Attribute | Description |
netErrorType | The state of the network error. Valid values: |
isSimpleMode | Specifies whether to use the simple mode. This is a boolean property. |
Code example
<com.alipay.mobile.antui.basic.AUNetErrorView
android:id="@+id/net_error"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:netErrorType="signalError"/>Is this page helpful?