【发布时间】:2019-01-16 14:52:48
【问题描述】:
我正在为我的 FAB 使用一种预设按钮设计(添加按钮)。我能够更改按钮背景颜色的颜色,但加号是绿色,我想更改它。我该如何改变呢?
【问题讨论】:
标签: android floating-action-button
我正在为我的 FAB 使用一种预设按钮设计(添加按钮)。我能够更改按钮背景颜色的颜色,但加号是绿色,我想更改它。我该如何改变呢?
【问题讨论】:
标签: android floating-action-button
使用
机器人:色调
属性你可以这样设置颜色
<android.support.design.widget.FloatingActionButton
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:tint="@android:color/white"
android:src="@android:drawable/ic_input_add" />
希望这会有所帮助。祝你好运:)
【讨论】: