i have used 2 pictures (nine-patch) background of buttons. when state_pressed="true"
background changes. (i used selector)
i designed backgrounds somehow real buttons , when press them, go inside.
look @ them when running application on avd
(or device)
button's text @ previous position. what's solution?
you can use svg image backgroud never pixelate in case example creae drawable , past given xml source in create avg image use drawable backgroung
<?xml version="1.0" encoding="utf-8"?> <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="50dp" android:height="50dp" android:viewportwidth="50" android:viewportheight="50"> <path android:fillcolor="#c03a2b" android:pathdata="m24.85,10.126c2.018-4.783,6.628-8.125,11.99-8.125c7.223,0,12.425,6.179,13.079,13.543 c0,0,0.353,1.828-0.424,5.119c-1.058,4.482-3.545,8.464-6.898,11.503l24.85,48l7.402,32.165c-3.353-3.038-5.84-7.021-6.898-11.503 c-0.777-3.291-0.424-5.119-0.424-5.119c0.734,8.179,5.936,2,13.159,2c18.522,2,22.832,5.343,24.85,10.126z" /> <path android:fillcolor="#ed7161" android:pathdata="m6,18.078c-0.553,0-1-0.447-1-1c0-5.514,4.486-10,10-10c0.553,0,1,0.447,1,1s-0.447,1-1,1 c-4.411,0-8,3.589-8,8c7,17.631,6.553,18.078,6,18.078z" /> </vector>
Comments
Post a Comment