Questions tagged [android-drawable]

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

2841 questions
44
votes
3 answers

Getting black ImageView using Picasso and Glide

The problem I'm writing an Android app that's supposed to have a "Slideshow" feature on it. I've found this nice library, based on Picasso, that does exactly what I wanted, and it worked just fine most of the times. Problem is, sometimes my images…
Mauker
  • 10,551
  • 7
  • 47
  • 69
43
votes
5 answers

Android shape border with gradient

I want to create a border for a linearLayout. So I decide to create a shape. I want the border to have a gradient. The following is not doing it. It fills the rectangle and then creates a stroke. I don't want a filled rectangle, just the stroke. And…
learner
  • 11,452
  • 24
  • 87
  • 160
39
votes
5 answers

how to get android gradient center light effect?

i want something like following image i tried it using drawable shape
Ajeet47
  • 1,711
  • 1
  • 13
  • 18
38
votes
2 answers

Android vector drawable editor

I'd like to modify existing Android drawable vector XML resource, but Android Studio let do it only in XML source. Could you suggest a tool for "interactive" editing Android drawable XML? Or may be there is a way to import such files to, say…
Alexey
  • 2,310
  • 2
  • 24
  • 42
36
votes
7 answers

Android Vector Drawable not support, not support

In icon.svg ERROR@ line 9 is not supported ERROR@ line 10 is not supported How to export this type of svg to vector drawable? Is this even possible? Or should I look for a new svg?
Arka Prava Basu
  • 1,639
  • 3
  • 13
  • 23
36
votes
6 answers

Binary XML file line #1: invalid drawable tag vector

I have an app that runs perfectly on most devices. However, I'm getting a FATAL exception whenever I try to run my application on devices with API < 21. Here is the log: java.lang.RuntimeException: Unable to start activity…
34
votes
2 answers

How to return to default style on EditText if I apply a background?

I just encountered with a problem that I don't know how to solve. It looks silly but I cannot find a way to fix it. I have a form in android with several EditText and when you submit the form it checks those EditText and if they have wrong data I…
34
votes
1 answer

Android text in drawable layer-list

I am trying to implement splash screen without any extra activities, using theme call in the manifest file's tag. In my styles.xml