Announcement: Tencent Cloud Mini Program Platform Renamed to Tencent Cloud Super App as a Service on January 2, 2025
Console Updates
Android SDK Updates
iOS SDK Updates
Flutter SDK Updates
IDE Updates
Base Library Updates

/*** Customizes the Back button icon on the navigation bar. The required size is 24 × 43 pixels.* Calling environment: Subprocess** @param mode - Navigation bar title color. 1 for black title, 0 for white title.* @return*/@DrawableResint navBarBackRes(int mode);
@Overridepublic int navBarBackRes(int mode) {if(mode == 0) {//blackreturn R.drawable.back_icon;//your black icon res}else {//whitereturn R.drawable.white_icon;//your white icon res}}

/*** Customizes the Home button icon on the navigation bar. The required size is 48 × 48 pixels.* Calling environment: Subprocess** @param mode - Navigation bar title color. 1 for black title, 0 for white title.* @return*/@DrawableResint homeButtonRes(int mode);
@Overridepublic int homeButtonRes(int mode) {if(mode == 0) {//blackreturn R.drawable.home_black_icon;}else {return R.drawable.home_white_icon;}}

/*** Customizes the More button icon on the navigation bar.The required size is 80 × 59 pixels.* Calling environment: Subprocess** @param mode - Navigation bar title color. 1 for black title, 0 for white title.* @return*/@DrawableResint moreButtonRes(int mode);
@Overridepublic int moreButtonRes(int mode) {if(mode == 0) {//blackreturn R.drawable.more_black_icon;}else {return R.drawable.more_white_icon;}}

/*** Customizes the Close button icon on the navigation bar. The required size is 80 × 59 pixels.* Calling environment: Subprocess** @param mode - Navigation bar title color. 1 for black title, 0 for white title.* @return*/@DrawableResint closeButtonRes(int mode);
@Overridepublic int closeButtonRes(int mode) {if(mode == 0) {//blackreturn R.drawable.close_black_icon;}else {return R.drawable.close_white_icon;}}

/*** The background color of the divider line* Calling environment: Subprocess** @return*/@DrawableResint lineSplitBackgroundColor();
@Overridepublic int lineSplitBackgroundColor() {return Color.RED;}
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback