5

I have been trying to make radio buttons without the dot which toggles. I have been successful by doing this:

myRadioButton.setButtonDrawable(android.R.id.empty);

this works fine in all devices before Honeycomb 3.0.x. When I try and use the "empty" resource on the Xoom i get an error:

ERROR/AndroidRuntime(xxxxx): Caused by: android.content.res.Resources$NotFoundException: File  from drawable resource ID #0x1020004

so, I was wondering if there was a reason why the empty resource suddenly doesn't work on the Xoom. Any help would be appreciated. If you want to take a look at the radioButton related post it can be found here

Thanks!

Community
  • 1
  • 1
aveyD
  • 525
  • 6
  • 12

1 Answers1

15

You are trying to use an id as a drawable. You need to use android.R.color.transparent instead.

Romain Guy
  • 97,993
  • 18
  • 219
  • 200