private View BtnTxtColor;
BtnTxtColor     = (View)findViewById(R.id.BtnTxt);


PaintDrawable paintdrawble = (PaintDrawable)BtnTxtColor.getBackground
();  <-- appear exception
int nTempColor = paintdrawble.getPaint().getColor();



exception message is ColorDrawable.

i wanna get Background color of Button...

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to