如何更改 FloatingActionButton 中矢量资源的颜色?

how to change the color of vector asset in FloatingActionButton?

这是我的 FloatingActionButton

<com.google.android.material.floatingactionbutton.FloatingActionButton
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:backgroundTint="@color/white"
                    android:focusable="true"
                    android:src="@drawable/ic_camera_24"
                    android:tint="@color/green"
                    app:fabSize="mini"
                    app:rippleColor="@color/green" />

我尝试更改布局中的颜色 ic_camera_24.xml 但它仍然不起作用,我该如何解决?

祝大家有个愉快的一天!

尝试使用 app:srcCompatapp:tint:

<com.google.android.material.floatingactionbutton.FloatingActionButton
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:backgroundTint="@color/white"
                    android:focusable="true"
                    app:srcCompat="@drawable/ic_camera_24"
                    app:tint="@color/green"
                    app:fabSize="mini"
                    app:rippleColor="@color/green" />

来源:https://material.io/components/buttons-floating-action-button/android#mini-fabs