All Products
Search
Document Center

Progress page

Last Updated: May 25, 2021

AUFlowResultView displays a result page with progress. FlowResult is used to represent a node. Each node can be set with different types and auxiliary texts.

Sample image

Dependency

See Quick start.

API description

 
  1. /**
  2. * Clear all FlowStepView.
  3. */
  4. public void clearFlows() {
  5. removeAllViews();
  6. }
  7. /**
  8. * Set the FlowResult list and generate corresponding FlowStepView
  9. *
  10. * @param flowResultList
  11. */
  12. public void setFlows(List<FlowResult> flowResultList) {

FlowResult API

 
  1. /**
  2. * Construct FlowResult.
  3. *
  4. * @param resultStatus The node status. The value is ResultConstant.RESULT_STATUS_ENUM_XX.
  5. * @param statusIcon The status icon, which indicates ResultStatusIcon enumeration.
  6. * @param mainInfoText Main text.
  7. * @param subTitles The sub text list.
  8. */
  9. public FlowResult(int resultStatus, ResultStatusIcon statusIcon, String mainInfoText,
  10. List<String> subTi tles);
  11. /**
  12. * Construct FlowResult.
  13. *
  14. * @param resultStatus The node status. The value is ResultConstant.RESULT_STATUS_ENUM_XX.
  15. * @param statusIconId The status icon res id.
  16. * @param mainInfoText The Main text.
  17. * @param subTitles The sub text list.
  18. */
  19. public FlowResult(int resultStatus, int statusIconId, String mainInfoText,
  20. List<String> subTitles);

Sample code

 
  1. AUFlowResultView flowResultView = (AUFlowResultView) findViewById(R.id.flow_result_view);
  2. List<FlowResult> flows = new ArrayList<FlowResult>();
  3. flows.add(new FlowResult(ResultConstant.RESULT_STATUS_ENUM_OK, ResultStatusIcon.OK,
  4. "Payment succeeded", Arrays.asList("Auxiliary text", "Auxiliary text")));
  5. flows.add(new FlowResult(ResultConstant.RESULT_STATUS_ENUM_OK, ResultStatusIcon.PENDING,
  6. "Label text", Arrays.asList("Auxiliary text", "Auxiliary text")));
  7. flows.add(new FlowResult(ResultConstant.RESULT_STATUS_ENUM_NORMAL, ResultStatusIcon.PENDING,
  8. "Label text", Arrays.asList("Auxiliary text", "Auxiliary text")));
  9. flowResultView.setFlows(flows);