Top "Drawable" questions

A Drawable is a graphics-related term which generally means "something to be drawn.

error: cannot find symbol variable abc_ic_ab_back_mtrl_am_alpha

I added a Fragment to my Android Studio project using New > Fragment > Fragment (Blank). As a result when …

android android-layout android-studio drawable android-resources
Styling EditText view with shape drawable to look similar to new holographic theme for Android < 3.0

I want to create a shape drawable for that mimics the new holographic theme (Android >=3.0) on older Android versions. …

android background themes android-3.0-honeycomb drawable
Drawable Rotating around its center Android

I am getting strange results with the following code: iv = (ImageView) findViewById(R.id.iv); iv.setImageResource(R.drawable.spinner_…

android rotation drawable
Android - Best way to overlay a play button on an image/thumbnail

I have an android application which can playback audio/video and show pictures. For videos I want to overlay a …

android imageview overlay drawable
Save image to sdcard from drawable resource on Android

I'm wondering how to save an image to user's sdcard through a button click. Could some one show me how …

android drawable sd-card android-image android-button
setBackgroundResource() discards my XML layout attributes

I have a view which is used as an item in a ListView. In my custom adapter, I change the …

android background drawable padding layer-list
android RadioButton button drawable gravity

I am generating RadioButtons dynamically with RadioButton radioButton=new RadioButton(context); LayoutParams layoutParams=new LayoutParams(radioWidth,radioHeight); layoutParams.gravity=Gravity.…

android radio-button center drawable
Change shape solid color at runtime inside Drawable xml used as background

I've a Drawable xml file (background.xml): <?xml version="1.0" encoding="UTF-8"?> <layer-list xmlns:android="http://schemas.android.…

android layout drawable shape
Access resource defined in theme and attrs.xml android

I have a scenario in which I want to set a Drawable depending upon the theme defined. To explain this …

android resources attributes themes drawable
How to programmatically create a round cornered border using ShapeDrawable in android?

I need to create a border with rounded corners programatically by extending ShapeDrawable. I need to have a black border …

java android border drawable shapedrawable