Can I make "not original looking" buttons for Android in Eclipse? -
i think, e.g. curved buttons, or circle button. if can how?
it's bad ideia round buttons using rounded background image. (bad) experience... when in different resolutions appear pixilated.
you should use drawable, shape rounded created you!
something (selector have effects on press, on selected..):
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/greyer_bubble" android:state_pressed="true" /> <!--when selected, use --> <item android:drawable="@drawable/greyer_bubble" android:state_selected="true" /> <!--when not selected, use --> <item android:drawable="@drawable/green_bubble" /> </selector>
example of 1 of rounded buttons defined above.
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="@color/green" /> <corners android:radius="12dp" /> </shape>
Comments
Post a Comment