If i defined a color in resources
#123456
it\'s possible
Add @SuppressLint("ResourceType") if an error occurs. Like bellow.
private String formatUsernameAction(UserInfo userInfo, String action) {
String username = userInfo.getUsername();
@SuppressLint("ResourceType") String usernameColor = getContext().getResources().getString(R.color.background_button);
return "" + username
+ " " + action.toLowerCase() + "";
}