InflateException with FloatingActionButton from Official Design Library

前端 未结 7 1548
谎友^
谎友^ 2020-11-27 04:54

I am getting a bug using the official FloatingActionButton from Google\'s support design library.

Here is my LogCat.

android.view.Infla         


        
7条回答
  •  悲&欢浪女
    2020-11-27 05:14

    com.android.support:appcompat-v7:21+ added support for tinting widgets on devices running pre android 5.1 (API Level 21). To make use of it make sure you extend or set the AppCompat Theme and use app:backgroundTint instead of android:backgroundTint.

    Example:

    
    

提交回复
热议问题