android - 如何去除 FloatingActionButton 下面的灰色阴影颜色

标签 android android-support-library floating-action-button

我在 FloatingActionButton 下方得到浅灰色,如图所示。任何人都知道如何删除它。我在 Lollipop 版本上对其进行了测试。

我的xml代码

<android.support.design.widget.FloatingActionButton
    android:id="@+id/fab"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_alignParentRight="true"
    android:src="@drawable/ic_add_black"
    app:borderWidth="0dp"
    app:fabSize="mini"
    app:rippleColor="@color/colorPrimaryDark" />

Floating action button

最佳答案

尝试设置海拔:

app:elevation="0dp"

关于android - 如何去除 FloatingActionButton 下面的灰色阴影颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32424635/

相关文章:

java - Thread.sleep停止整个功能的android

Android Two Fragment ListView 布局异常

android - 找不到与给定名称匹配的资源(在 'cardBackgroundColor' 处,值为 '?android:attr/colorBackgroundFloating' )

android - 25.1.0 Android 支持库正在破坏工厂行为

flutter - BottomAppBar 中用于自定义 FAB 的缺口

android - 以编程方式在 FloatingActionButton 中设置 pressedTranslationZ

android - 在搜索栏中将 MediaPlayer 缓冲显示为次要进度

android - Android开发有一个很好的在线IDE吗?

android - NFC 点对点模式 - Android Beam - ISO 18092

android-studio - 渲染问题 : The following classes could not be found