Technique to create Button with own rectangle shape
This is my Dialer Layout code, this is game with Gravity, Layout and GridLayout with rowCount and columnCount.
But one point is more interesting, look to small "+" under "0" and see how I have created background Image behind button.
And this is full code of my Drawable Resource File.
There are a couple alternative way to create similar Vector Asset for background or Icons:
- Use Inkscape, than export as SVG, than import SVG to Android app as Assets
- Use various online tools like Android Asset Studio
- Use Vector Drawable.
AndroidMosaic context:
Comments (
)
)
Link to this page:
http://www.vb-net.com/AndroidMosaic/Index15.htm
|
|