首页 > 其他 > 详细

FloatingActionButton 不能正常显示为圆形

时间:2015-07-17 17:36:09      阅读:720      评论:0      收藏:0      [点我收藏+]
使用 compile ‘com.android.support:design:22.2.0‘
实现FloatingActionButton效果的问题:

1. 在低于API17时会展示为方形而不是圆形,这只属性 app:borderWidth="0dp" 解决该问题;
2. 不能有名为fab_background的drawable资源;

 

 

 

This is known by Google and will be fix soon in the next version of the Design Support Library, see this issue: FAB Appears as a square on API 16. It should only concern API 16.

The workaround, proposed in the same thread, is to add app:borderWidth="0dp" to your FAB.

 

FloatingActionButton 不能正常显示为圆形

原文:http://www.cnblogs.com/niuql/p/4654687.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!