Progress page

Updated at:

AUFlowResultView displays a result page with a progress indicator. Each `FlowResult` represents a node. You can set a different type and supplementary text for each node.

Preview

API reference

    /**
     * Clears all FlowStepView instances.
     */
    public void clearFlows() {
        removeAllViews();
    }

    /**
     * Sets a list of FlowResult objects and generates the corresponding FlowStepView instances.
     * 
     * @param flowResultList
     */
    public void setFlows(List<FlowResult> flowResultList) {

FlowResult interface

    /**
     * Constructs a FlowResult object.
     * 
     * @param resultStatus The node status. The value is one of the ResultConstant.RESULT_STATUS_ENUM_XX constants.
     * @param statusIcon The status icon. The type is the ResultStatusIcon enum.
     * @param mainInfoText The main text.
     * @param subTitles A list of subtitles.
     */
    public FlowResult(int resultStatus, ResultStatusIcon statusIcon, String mainInfoText,
            List<String> subTitles);

    /**
     * Constructs a FlowResult object.
     * 
     * @param resultStatus The node status. The value is one of the ResultConstant.RESULT_STATUS_ENUM_XX constants.
     * @param statusIconId The resource ID of the status icon.
     * @param mainInfoText The main text.
     * @param subTitles A list of subtitles.
     */
    public FlowResult(int resultStatus, int statusIconId, String mainInfoText,
            List<String> subTitles);

Code example

AUFlowResultView flowResultView = (AUFlowResultView) findViewById(R.id.flow_result_view);
List<FlowResult> flows = new ArrayList<FlowResult>();
flows.add(new FlowResult(ResultConstant.RESULT_STATUS_ENUM_OK, ResultStatusIcon.OK,
        "Payment successful", Arrays.asList("Supplementary description", "Supplementary description")));
flows.add(new FlowResult(ResultConstant.RESULT_STATUS_ENUM_OK, ResultStatusIcon.PENDING,
        "Label text", Arrays.asList("Supplementary description", "Supplementary description")));
flows.add(new FlowResult(ResultConstant.RESULT_STATUS_ENUM_NORMAL, ResultStatusIcon.PENDING,
        "Label text", Arrays.asList("Supplementary description", "Supplementary description")));
flowResultView.setFlows(flows);