Questions tagged [android-drawable]

In Android, a Drawable is a general abstraction for "something that can be drawn."

2993 questions
1
vote
1 answer

Difference between using Drawable and decoding resource directly

I'm using a bitmap resource to mask another image using DST_IN transfer mode. This is the bitmap: (You probably can't see it because it's white and transparent.) If I load it like this, everything works as expected: mMaskBitmap =…
Kevin Krumwiede
  • 9,868
  • 4
  • 34
  • 82
1
vote
4 answers

Arranging layout using custom images as buttons

I have images created in my res/drawable directory with appropriate hdpi, mdpi, xhdpi, and xxhdpi sizings, and I would like to use them instead of regular buttons. I've done that part, but I need some help with the layout and formatting. I'll write…
pez
  • 3,859
  • 12
  • 40
  • 72
1
vote
2 answers

Custom RatingBar styles only show one dot, other weird behavior

I have the following code set up to create a custom RatingBar style on Android: In res/values/styles.xml: