Top "Android-drawable" questions

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

Creating & Using 9-patch images in Android

I recently heard about 9-patch images. I know its 9 tiled and is stretchable. I'd like to know more about it. …

android android-drawable nine-patch
Different resolution support android

Edited Question: Mobile Resolution: I would like to design different screen dpi like following resolutions. 320x480,480×800,540x960,720x1280 (Samsung S3),1080…

android android-custom-view android-xml android-drawable screen-resolution
Create a new color drawable

I am trying to convert a hex value to an int so I can create a new color drawable. I'm …

java android android-drawable colordrawable
Understanding Android's <layer-list>

I don't understand how the layer-lists work. I read the official documentation with some examples but it does not work …

android xml-drawable android-drawable layer-list
Scale image keeping its aspect ratio in background drawable

How do I make a background image fit the view but keep its aspect ratio when using <bitmap /> …

android scaling android-drawable android-bitmap android-background
Storing R.drawable IDs in XML array

I would like to store drawable resources' ID in the form of R.drawable.* inside an array using an XML …

android arrays android-xml android-drawable android-resources
Calling setCompoundDrawables() doesn't display the Compound Drawable

After I call the setCompoundDrawables method, the compound Drawable is not shown.. Drawable myDrawable = getResources().getDrawable(R.drawable.btn); btn.…

android android-layout android-drawable
How to fix: android.app.RemoteServiceException: Bad notification posted from package *: Couldn't create icon: StatusBarIcon

I'm seeing the following exception in crash logs: android.app.RemoteServiceException: Bad notification posted from package com.my.package: Couldn't …

android android-notifications android-resources android-drawable
Change Icon Of Navigation Drawer

I am having trouble with changing my navigation drawer icon to a custom one. I've currently had to implement the …

android android-actionbar android-drawable android-navigation android-actionbaractivity
how to change a drawableLeft icon size on a button?

I added some icons on 4 buttons and they look so big next to the button. So how can I resize …

android android-drawable