简体   繁体   中英

How do I change the tint and background tint of the fab in the main activities?

I can't run my app because when I add a backgroundTint I get an error upon running my app.

Please someone help, here is my main activity file, where the fab is located.

! 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服务对其进行更新

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM