I am trying to draw textview rectangle shape with bottom shadow and rightbottom corner gradient.which look like page folded at right bottom corner
I have tried this,but this giving me right part of shape displaying black, i want only rightbottom…
Let say i want these shapes in my project, like rectangle, ring and oval:
Which means i should have three xml files for each shape.
So, as far as i know we create separate xml file for each shape. Is this mandatory to create each shape in separate…
Seems like shape padding doesn't work on pre 6 Android. I'm trying to add padding to custom ProgressBar background gradient and that what I have:
Android 6.0:
Android 5.0 and below:
pb_shape.xml:
I want create shape such as this image :
But i do not want use 9 pach png image, i want create this shape in drawable folder.
How can i create this? Any help could be appreciated! Thanks
I want to know if there is a way to obtain the effect of an image expanding with solid color only from one side.
Suppose you start with a bitmap like this:
and you want to setup an XML drawable so that it expand and shrink horizontally keeping its…
In my Android application I have drawn rectangle in canvas, how can I rotate rectangle and resize the rectangle on touch events ?
canvas.drawRect(300,300,500,500,paint);
This code is used to draw the rectangle.