








How to use these images?
Well, that’s quit simple,just drop these images in a drawable folder of your project and set it as a background of a button. I’ve put all these images in the drawable-hdpi folder. Created a button style in strings.xml like:
01
02
03
04
05
06
07
08
09
10
11
12
13
14
| < style name = "ButtonText" > < item name = "android:layout_width" >wrap_content</ item > < item name = "android:layout_height" >wrap_content</ item > < item name = "android:textColor" >#ffffff</ item > < item name = "android:gravity" >center</ item > < item name = "android:layout_margin" >3dp</ item > < item name = "android:textSize" >30dp</ item > < item name = "android:shadowColor" >#000000</ item > < item name = "android:shadowDx" >1</ item > < item name = "android:shadowDy" >1</ item > < item name = "android:shadowRadius" >2</ item > < item name = "android:paddingLeft" >15dp</ item > < item name = "android:paddingRight" >15dp</ item > </ style > |
Thenn, just create a layout with some buttons:
No comments:
Post a Comment