FloatingActionButton
FloatingActionButton copied to clipboard
The FloatingActionButton can't support the attribute " app:srcCompat"(SVG pictures)
Hello, I found a problem when i use this widget, it works well when i set the attribute "android:src",but i want my app support the android 4.4,or more lower with SVG pictures, so i need to use "app:srcCompat", but it doesn't work well;The button just show the background color and it's empty in it. So what should i do?
I think, after reading the article you could able to solve the problem with your own. If helped please, close the issue. Thank you.
Any new about this issue ? I need to use a vector for FloatingActionButton
...
@Toubap please, read my comment above.
I read the article but still no result. The icons don't show on KitKat and below
What you can do is to set the image resource programmatically with setImageResource
Works for me "The ‘magic’ way" from the arcticle (comment above)
@long1eu I tried it with using the 'magic way' and it was worked for me for API 17 lower devices. Try it again if you want or share the non-working piece of the code.
it works, thanks
glad to hear it ;)