All Products
Search
Document Center

Operation result dialog

Last Updated: May 25, 2021

AUOperationResultDialog provides a pop-up window containing a title and an option list. It is mainly used for displaying social sharing and payment results.

Sample image

Dependency

See Quick start.

API description

 
  1. /**
  2. * Create AUListDialog based on the input list.
  3. *
  4. * @param title The title.
  5. * @param list The PopMenuItem object list. Icons are allowed.
  6. * @param context The context object.
  7. */
  8. public AUOperationResultDialog(Context context, String title, List<String> list)
  9. /**
  10. * Set the list option tapping event listener.
  11. */
  12. public void setOnItemClickListener(OnItemClickListener listener)
  13. /**
  14. * Dynamic data refreshing API.
  15. *
  16. * @param list
  17. */
  18. public void updateData(ArrayList<PopMenuItem> list)
  19. /**
  20. * Obtain imageView.
  21. * @return
  22. */
  23. public ImageView getIconView()
  24. /**
  25. * Set the visibility of the separation line.
  26. * @param visibility
  27. */
  28. public void setDivierViewVisibility(int visibility)

Sample code

 
  1. public void clickAUOperationResultDialog(View view) {
  2. AUOperationResultDialog dialog = new AUOperationResultDialog(this,"标题文字",getData());
  3. dialog.getIconView().setImageDrawable(getResources().getDrawable(R.drawable.image));
  4. dialog.show();
  5. }