FloatingActionButton,低于API级别17方形按钮 [英] FloatingActionButton, square button below API level 17

查看:1565
本文介绍了FloatingActionButton,低于API级别17方形按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用android.support.design.widget.FloatingActionButton从新设计支持库22.2.0,在我的布局文件。它工作正常,但它显示了低于API级别17

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

推荐答案

这是由谷歌已知的,将在设计支持图书馆的下一个版本很快修复,看到这个问题:的 FAB将显示为API 16 的正方形。它应该只关心API 16。

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.

解决方法,在同一个线程提出的,是添加应用程序:边框宽度=0dp您FAB

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

这篇关于FloatingActionButton,低于API级别17方形按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆