SimpleText icon indicating copy to clipboard operation
SimpleText copied to clipboard

Support textColor, not resource id

Open kjsolo opened this issue 7 years ago • 2 comments

kjsolo avatar Oct 18 '18 03:10 kjsolo

TextView tv_title = findViewById(R.id.tv_title); String breadCrumb = year + " >"; SimpleText simpleTextBC = SimpleText.from(breadCrumb) .all(">") .bold() .textColor(R.color.colorWhite); tv_title.setText(simpleTextBC);

I am getting the error on .textColor Line

Attempt to invoke virtual method 'int android.content.Context.getColor(int)' on a null object reference

Sarosh-Madara avatar Oct 26 '18 20:10 Sarosh-Madara

hi @Sarosh-Madara in which device you faced this issue. i also had this issue but can't figure out on which device it's happening. so it will be great if you provide some more info about device. thanks

mkrupal09 avatar May 24 '19 08:05 mkrupal09