Contents
Stroke (outline around the shape) Sometimes you want an outline around your shape and to do that you can use the stroke tag. You can specify the width and color of the outline using android:width and android:color.
What is a drawable?
A Drawable resource is a general concept for a graphic which can be drawn. … In addition to graphical files, Android supports XML drawables and 9-patch graphics. XML drawables are used to describe shapes (color, border, gradient), state, transitions and more.
How do I make different shapes in Android?
How to make different shapes in android
- “rectangle”: A rectangle that fills the containing View. This is the default shape.
- “oval”: An oval shape that fits the dimensions of the containing View.
- “line”: A horizontal line that spans the width of the containing View. …
- “ring”: A ring shape.
25 авг. 2016 г.