[英]How to make shape of FAB button to be like triangle
I want to make FAB Button in triangular shape, But usually FAB is in circle shape. 我想将FAB按钮制成三角形,但通常FAB是圆形。 How will I achieve it.
我将如何实现它。
Try like this: 尝试这样:
take triangular shape Drawable and add it 取三角形可绘制并添加
app:backgroundTint should be "null" app:backgroundTint应该为“ null”
I haven't try this yet, but this is my idea. 我还没有尝试过,但这是我的主意。 What if you:
如果您怎么办:
However, we are not suggested to change the shape of the button. 但是,我们不建议更改按钮的形状。 Look this: Float Action Button
看起来像: 浮动操作按钮
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.