【发布时间】:2019-05-24 14:42:03
【问题描述】:
我有一个 android.support.design.widget.FloatingActionButton 和 app:backgroundTint="#3399ff" 和 android:backgroundTint="@color/white"。
我用DrawableCompat.setTintList(DrawableCompat.wrap(floatingActionButton.getContentBackground()), androidBackgroundTintColor);
要更改android:backgroundTint="@color/white",但我还没弄清楚如何更改app:backgroundTint="#3399ff"...
你会知道吗?
请注意它的 app:backgroundTint 而不是 android:backgroundTint。
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
【问题讨论】:
标签: android background floating-action-button android-support-design