Top "Shapedrawable" questions

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
Drawing Circle programmatically using Android ShapeDrawable

I have a requirement in my project to draw a circle in runtime dynamically. So for that purpose I am …

android android-canvas android-drawable xml-drawable shapedrawable
How can I draw a Rectangle in Android, of a given size, that positions itself in the view to which it is added?

I understand how to draw I shape, I am extending the View class, and overriding the onDraw, where I create …

android layout graphics shapedrawable
Android dashed line drawable potential ICS bug

The following is a dashed line, defined as a ShapeDrawable in XML: <shape xmlns:android="http://schemas.android.com/…

android xml-drawable shapedrawable
How to create parallelogram shape background?

I am trying to make parallelogram background for my textview but it is not displaying properly...it display following output &…

android shapedrawable
How can I create a rectangle with two curved sides in XML drawable?

I want the left and right sides (not the corners) of the rectangle to be curved. Or say the top …

android drawable shapedrawable
Google Maps API v2 Android add shape drawable as marker

I've been trying to add a shape drawable as the marker icon for a marker I want to add on …

android google-maps-markers google-maps-android-api-2 shapedrawable
setColor method of GradientDrawable drawing different color

I have a shape in layer-list and my goal is to change color of the shape programmatically at runtime. I …

android android-ui android-drawable shapedrawable
Add shadow to the ShapeDrawable programmatically

I am trying to make buttons with different gradients programmatically. I use ShapeDrawable and it works like a charm. RoundRectShape …

java android shadow shapedrawable
Animate Android Ring Shape's sweep angle

Attempting to animate the Android Ring Shape to produce an effect similiar to the shown sequence of images. I have …

java android android-layout android-animation shapedrawable