I was trying to create a button similar in look to the round buttons over here -
http://livetools.uiparade.com/index.html
(every button looks like it is inside an immersed section) I had it by placing the button
in a circle background and giving them both a little gradient that didnt end up the same
though I got this result -
(I will upload my code once I can) how can I achieve that same look?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
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
<layer-list>
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 anOnClickListener
in the Java code.Go to this link and Generate Custom 3D button.
http://angrytools.com/android/button/
buttonshape.xml
Button Code