Xamarin – Custom Button Style in Android
In the last post we had seen various button styles. In this post we would see the custom button style.
Let’s say we have three images of the three states of the button as follows.
Button Press Image
Button Focus Image
Button Normal Image
Add Resources to Drawable folder.
Add an XML file to the Drawable folder.
Write following xml in the file.
Define the style in your button.
Now run the application and you should see at least two states: Normal and Pressed.
When Pressed or Press and Hold.
Hope this post helps, thanks for reading.