android - Color.ParseColor() - NullPointerException -



android - Color.ParseColor() - NullPointerException -

i have field declared:

private string textcolor = "#ffefefef";

and in method is:

tv.settextcolor(color.parsecolor(textcolor));

im getting nullpointerexception @ color.paresecolor(). do wrong? should work this.

one of constructors resetting textcolor null when inflated xml , textcolor attribute missing.

textcolor = attrs.getattributevalue("http://schemas.android.com/apk/res/com.incredible.fontmetrics", "textcolor");

android parsing colors nullpointerexception

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

ubuntu - Bash Script to Check That Files Are Being Created -

Php operator `break` doesn't stop while -