All Products
Search
Document Center

Mobile Platform as a Service:Net error page

Last Updated:Jul 21, 2023

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

Dependency

See Quick start.

API description

/**
     * Set the simple mode.
     * @param isSimple
     */
    public void setIsSimpleType(boolean isSimple);

    /**
     * Set the network exception mode.
     * @param type
     */
    public void resetFlowTipType(int type);

    /**
     * Set the button properties.
     *
     * @param text
     * @param clickListener
     */
    public void setAction(String text, OnClickListener clickListener) ;

    /**
     * Set the Cancel button.
     */
    public void setNoAction();

    /**
     * Set prompt message.
     *
     * @param text
     */
    public void setTips(String text) ;

    /**
     * Set the auxiliary prompt message.
     * @param text
     */
    public void setSubTips(String text) ;

    /**
     * Obtain the Operation button.
     * @return
     */
    public AUButton getActionButton();

    /**
     * Obtain image view.
     * @return
     */
    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

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