移动开发平台 mPaaS 结果页

By | 2021年4月23日

AUResultView 提供一个带图标、三级文案的结果页。

效果图

依赖

参见 管理组件依赖

接口说明

  
  1. /**
  2. * 设置图标
  3. *
  4. * @param iconRes 图标资源 ID
  5. */
  6. public void setIcon(@DrawableRes int iconRes);
  7. /**
  8. * 设置主标题文案
  9. *
  10. * @param text 文案内容
  11. */
  12. public void setMainTitleText(CharSequence text);
  13. /**
  14. * 设置次标题文案
  15. *
  16. * @param text 文案内容
  17. */
  18. public void setSubTitleText(CharSequence text);
  19. /**
  20. * 设置辅助标题文案
  21. *
  22. * @param text 文案内容
  23. */
  24. public void setThirdTitleText(CharSequence text);
  25. /**
  26. * 设置辅助标题文案,带删除线效果
  27. *
  28. * @param text 文案内容
  29. * @param strikeThrough 是否显示删除线
  30. */
  31. public void setThirdTitleText(CharSequence text, boolean strikeThrough);

自定义属性

属性名 说明 类型
icon 图标 reference
mainTitleText 一级文案 string,reference
subTitleText 二级文案 string,reference
thirdTitleText 三级文案 string,reference

代码示例

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元"/>

请关注公众号获取更多资料

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注