Questions tagged [android-drawable]

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

2993 questions
1
vote
2 answers

Android icons for different displays and screen densities

I'm completely confused to the core reading various articles to understand to get my app to fit in to different screen sizes. basically the issue i am having is to have a logo fit in to screens with different screen densities. I've got an image with…
Mr.Noob
  • 1,005
  • 3
  • 24
  • 58
1
vote
2 answers

Padding on progressbar drawable is not applied

I have this drawable for my progressbar:
elfar
  • 461
  • 2
  • 6
  • 21
1
vote
2 answers

How to draw Circle on Empty Canvas?

I wants to draw Circle on empty canvas, but not getting how to do. This is code I'm using to create Empty canvas inside my custom ImageView class. bmpBase = Bitmap.createBitmap(image_width, image_height, Bitmap.Config.ARGB_8888); canvas = new…
Arpana
  • 342
  • 1
  • 3
  • 13
1
vote
1 answer

Android calendar, How to draw a circle on selected date

I have an android calendar, there's a dot under the selected date(or date has to-do events), what i want to do is draw a circle around the date number. Could anyone help me about this? ImageView iw = (ImageView) v.findViewById(R.id.date_icon); if…
Haifeng Zhang
  • 30,077
  • 19
  • 81
  • 125
1
vote
0 answers

Apply seamless gradient across rows in Android TableLayout

I am working with a list view with customer ArrayAdapter. I have overridden getView to update the text views in a TableLayout. After updating the text a gradient is applied to a group of table rows to dynamically highlight the relevant information…
trukvl
  • 936
  • 7
  • 16
1
vote
0 answers

Mimic exposure value on a Drawable

I'm trying to animate the exposure value of a Drawable as part of a transition. In this same transition I'm adjusting the saturation via a ColorFilter. I'm wondering if there are any ways to mimic adjusting this value that would be compatible with a…
keyboardr
  • 841
  • 1
  • 8
  • 20
1
vote
1 answer

using CubicTo to draw Bezier curve

The following code generates BezierCurves and creates a Path object to be drawn on the canvas. I converted this code from C#.Net to Android. Issue : When I draw the points the points do not formulate a continuous curve. it breaks in the middle and…
1
vote
0 answers

Drawing over ImageView using finger touch , android

Trying to develop an application where user can draw using their fingers over image view. Also what i want is user can change imageView image using button. So far i'm able to code for the image changing logic on click of next and previous buttons,…
Mayank
  • 165
  • 1
  • 5
  • 20
1
vote
1 answer

Andorid DrawPath doesn't fill-up the enclosed area

Following list shows the x,y coordinates and particular method used to create a Path. 0 0 moveTO 180 0 lineTo 180 0 moveTO 246 227, 127 24, 115 150 cubicTo 127 276, 246 71, 180 300 cubicTo 180 300 …
user2943193
  • 41
  • 1
  • 12
1
vote
1 answer

expose color of a Drawable

I defined an Android Drawable like this:
Matthias
  • 5,574
  • 8
  • 61
  • 121
1
vote
0 answers

What is faster: Just set ImageView.setImageBitmap or check if ImageView already has this Bitmap attached?

I've got a custom Image-cache which basically does the following: I call it like this: myImageLoader.imageForImageView(R.id.image_I_want_to_assign, myImageView); With the method: public void imageForImageView(int id, ImageView iv){ Bitmap…
Kevin Cruijssen
  • 9,153
  • 9
  • 61
  • 135
1
vote
2 answers

Where can i found default android xml drawables?

I would like to use the default ice cream sandwich radio button but not with ligth blue color. I would like to recolor it. Can i somewhere found the original .xml files to recolor and use it in my project?
Adam Varhegyi
  • 11,307
  • 33
  • 124
  • 222
1
vote
1 answer

Why use ImageDrawable Property image size is very short in ImageView Android?

i use ImageDrawable for display image in ImageView Widget,But this Image is Very short. when I use ImageResource Property size is okay My code ImageResource: imageview.setImageResource(R.drawable.a1); My…
1
vote
1 answer

Using same references with different sizes

I have some images in my App and want to use the same reference for multiple screens, is it possible to use the scale tag in xml to re-size the image and use it with different resolutions? when i tried it the picture disappeared! For example i did…
1
vote
1 answer

Android gradient not divisible by 45

I am trying set angle in gradient 60 degrees. Eclipse and android generate the error: 06-23 13:29:06.317: E/AndroidRuntime(8013): FATAL EXCEPTION: main 06-23 13:29:06.317: E/AndroidRuntime(8013): java.lang.RuntimeException: Unable to start …
user1139714
  • 61
  • 1
  • 5