All Products
Search
Document Center

Result page

Last Updated: May 25, 2021

AUResultView provides a result page containing icons and three-level text.

Sample images

Dependency

See Quick start.

API description

 
  1. /**
  2. * Set the icon.
  3. *
  4. * @param iconRes The icon resource ID.
  5. */
  6. public void setIcon(@DrawableRes int iconRes);
  7. /**
  8. * Set main title text.
  9. *
  10. * @param text The text content.
  11. */
  12. public void setMainTitleText(CharSequence text);
  13. /**
  14. * Set sub title text.
  15. *
  16. * @param text The text content.
  17. */
  18. public void setSubTitleText(CharSequence text);
  19. /**
  20. * Set auxiliary title text.
  21. *
  22. * @param text The text content.
  23. */
  24. public void setThirdTitleText(CharSequence text);
  25. /**
  26. * Set auxiliary title text with a strikethrough.
  27. *
  28. * @param text The text content.
  29. * @param strikeThrough Whether to display the strikethrough.
  30. */
  31. public void setThirdTitleText(CharSequence text, boolean strikeThrough);

Custom properties

Property Description Type
icon The icon. Reference
mainTitleText First-level text. String, Reference
subTitleText Second-level text. String, Reference
thirdTitleText Third-level text. String, Reference

Sample code

XML

 
  1. <com.alipay.mobile.antui.status.AUResultView
  2. android:id="@+id/result_view2"
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. android:layout_marginTop="20dp"
  6. app:icon="@drawable/icon_result_alipay"
  7. app:mainTitleText="支付成功"
  8. app:subTitleText="998.00"
  9. app:thirdTitleText="1098.00元"/>