Android 如何在FAB buton中更改背景色?
我尝试了几个选项,但都不起作用,我找到的所有文档都不推荐使用。嗨,罗德里格斯·曼努埃尔·华金,我建议您尝试以下行:Android 如何在FAB buton中更改背景色?,android,android-studio,Android,Android Studio,我尝试了几个选项,但都不起作用,我找到的所有文档都不推荐使用。嗨,罗德里格斯·曼努埃尔·华金,我建议您尝试以下行:buttonName.setbackgroundtinlist(AppCompatResources.getColorStateList(this,R.color.color))试试这个:buttonName.setBackgroundTintList(AppCompatResources.getColorStateList(this,R.color.color))
buttonName.setbackgroundtinlist(AppCompatResources.getColorStateList(this,R.color.color))代码>试试这个:buttonName.setBackgroundTintList(AppCompatResources.getColorStateList(this,R.color.color))