mikepenz / Android-Iconics

Android-Iconics - Use any icon font, or vector (.svg) as drawable in your application.
https://mikepenz.dev
Apache License 2.0
5.18k stars 618 forks source link

How to use this library version 4.0.2 for FloatingActionButton? #485

Closed zivids closed 4 years ago

zivids commented 4 years ago

I was used the version 3.2.5 for FloatingActionButton by auto layout inflation, but in version 4 the auto layout infaltion is deprecated, should I use the IconicsDrawable for FloatingActionButton?

mikepenz commented 4 years ago

@zivids setting the icon programmatically is the best choice yes.

Alternatively you could extend the FloatingActionButton and add iconics support to it if you need it more often.

There may be an option to do it again via xml in the future, but that depends on how this issue is going to be resolveD: https://github.com/mikepenz/Android-Iconics/issues/481