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

接口说明
/**
* 设置图标
*
* @param iconRes 图标资源 ID
*/
public void setIcon(@DrawableRes int iconRes);
/**
* 设置主标题文案
*
* @param text 文案内容
*/
public void setMainTitleText(CharSequence text);
/**
* 设置次标题文案
*
* @param text 文案内容
*/
public void setSubTitleText(CharSequence text);
/**
* 设置辅助标题文案
*
* @param text 文案内容
*/
public void setThirdTitleText(CharSequence text);
/**
* 设置辅助标题文案,带删除线效果
*
* @param text 文案内容
* @param strikeThrough 是否显示删除线
*/
public void setThirdTitleText(CharSequence text, boolean strikeThrough);
自定义属性
属性 | 说明 | 类型 |
属性 | 说明 | 类型 |
icon | 图标 | reference |
mainTitleText | 一级文案 | string,reference |
subTitleText | 二级文案 | string,reference |
thirdTitleText | 三级文案 | string,reference |
代码示例
XML 示例:
<com.alipay.mobile.antui.status.AUResultView
android:id="@+id/result_view2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
app:icon="@drawable/icon_result_alipay"
app:mainTitleText="支付成功"
app:subTitleText="998.00"
app:thirdTitleText="1098.00元"/>
该文章对您有帮助吗?
- 本页导读 (0)
- 效果图
- 接口说明
- 自定义属性
- 代码示例