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

Dependency
See Quick start.
API description
/**
* Set the icon.
*
* @param iconRes The icon resource ID.
*/
public void setIcon(@DrawableRes int iconRes);
/**
* Set main title text.
*
* @param text The text content.
*/
public void setMainTitleText(CharSequence text);
/**
* Set sub title text.
*
* @param text The text content.
*/
public void setSubTitleText(CharSequence text);
/**
* Set auxiliary title text.
*
* @param text The text content.
*/
public void setThirdTitleText(CharSequence text);
/**
* Set auxiliary title text with a strikethrough.
*
* @param text The text content.
* @param strikeThrough Whether to display the strikethrough.
*/
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 |
Code sample
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="Payment succeeded"
app:subTitleText="998.00"
app:thirdTitleText="CNY 1098.00"/>