Try this code. I am able to produce an image that looks like this

which is similar to the first button you link to, using the following code. The key is to use to layer shapes one over the other to produce the desired effect.
File: res/drawable/button.xml
-
-
-
-
-
-
-
In your main layout, add an ImageView that will display this image.
You can make the ImageView clickable by giving it an OnClickListener in the Java code.