Quantcast
Channel: How to save, export, or convert an Android XML Drawable as a PNG image file? - Stack Overflow
Browsing all 5 articles
Browse latest View live

Answer by TryTryAgain for How to save, export, or convert an Android XML...

In the end it was a one liner using ImageMagick!I can't believe I didn't think to use ImageMagick before, Duh!!!convert -size 480x84 gradient:'rgba(156, 125, 90, 0.52)'-'rgba(24, 28, 24, 0.86)'...

View Article



Answer by Code Poet for How to save, export, or convert an Android XML...

Give this a try:try { item.setDrawingCacheEnabled(true); Bitmap bmp = item.getDrawingCache(); FileOutputStream out = new FileOutputStream(filename); bmp.compress(Bitmap.CompressFormat.PNG, 90, out);}...

View Article

Answer by Booger for How to save, export, or convert an Android XML Drawable...

You could also create an activity with just the gradient as a background, and nothing else on the screen.Run the app on an emulator or device, and use DDMS to take a screen capture. You will then have...

View Article

Answer by MrChaz for How to save, export, or convert an Android XML Drawable...

Use a program like photoshop or paint.Net - they both have gradient tools and should let you set the colours in the same format as you have there.

View Article

How to save, export, or convert an Android XML Drawable as a PNG image file?

I have a gradient I really like but I created it using XML drawable:<gradient android:startColor="#DD181C18" android:endColor="#809C7D5A" android:angle="90"/>What would be an easy way to create...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images