I am using android.support.design.widget.FloatingActionButton from the new Design Support library 22.2.0, in my layout file. It is working fine but it shows a square button below API level 17
相关问题
- 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
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.Released version 22.2.1 This release contains bug fixes related to FAB
https://code.google.com/p/android/issues/detail?id=175067
Change your gradle
Install support repository revision 16. So you can avoid the workaround [app:borderWidth="0dp"]
If it helps, I solved my issue by removing
It was a remnant from the previous FAB library I used. The design library's gets the color automatically from
colorAccent
.use different library projects which supports floating action button below API level 17 . you can find easily here .plz refer this .
Floating Action Button
Add the following attribute to the xml floating button
Finally the issue has been fixed in the new release
this will solve the square layout issue in API 16. FAB performs well if you place it inside Coordinate Layout. Check out https://code.google.com/p/android/issues/list?can=1&q=label:Version-22.2.1 for issues and fixes in new version.