![](/img/trans.png)
[英]FAB background tint does not change in fragment but changes in activity?
[英]How do I change the tint and background tint of the fab in the main activities?
我无法运行我的应用程序,因为当我添加backgroundTint时,运行我的应用程序时出现错误。
请有人帮忙,这是晶圆厂所在的主要活动文件。
! https://imgur.com/gallery/pHKq5
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
app:fabSize="normal"
app:srcCompat="@android:drawable/ic_input_add"/>
转到sdk管理器> sdk工具> google play服务对其进行更新
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.