All Products
Search
Document Center

Coupons item component

Last Updated: Mar 08, 2022

The coupon entry component is used to display the coupon entry including the coupon icon, title, and auxiliary description.

Sample images

coupons

Dependency

See Quick start.

Code sample

AUCouponsItem couponsItem1 = new AUCouponsItem(this);
couponsItem1.setCouponsInfo("Subtitle","CNY100 off voucher","");
couponsItem1.getCouponsImage().setImageResource(R.drawable.image);

AUCouponsItem couponsItem2 = new AUCouponsItem(this);
couponsItem2.setCouponsInfo("","CNY100 off voucher","Subtitle is optional");

AUCouponsItem couponsItem3 = new AUCouponsItem(this);
couponsItem3.setCouponsInfo("Subtitle","CNY100 off voucher","");
couponsItem3.setCouponsAssitDes("There are stores in 483m");
couponsItem3.getCouponsImage().setImageResource(R.drawable.image);