Android APP SDK / Set TitleBar Background Color

Specify the color of the Title Bar

This function allows merchants to change the color of the Title Bar (Action Bar).

				
					PaymentkitManager.setTitleBarBackgroundColor(mActivity, color)
				
			

Input

Activity Android Activity
Required

Activity application component. Please provide Activity component of current page.

color String
Required

Hex  color code. 
Ex: #FF0000 or FF0000

❗ Special note: The HEX color code is a hexadecimal representation of color. The format is #RRGGBB, where RR is red, GG is green, and BB is blue. Hexadecimal numbers range from 00 to FF, representing color intensity.

Example

				
					public void setTitleBarBackgroundColor(){
    boolen check = PaymentkitManager.setTitleBarBackgroundColor(mActivity, "#02DF82");
    UIUtil.showAlertDialog(mActivity,title:"提醒您",check?"設定成功":"設定失敗",new DialogInterface.OnClickListener(){
    @Override
    public void OnClick(DialogInterface dialog, int which){
        }
    },rightButtonName:"確定");
}
				
			

Copyright © Green World FinTech Service Co., Ltd. All rights reserved.

Green World