I used this library https://github.com/futuresimple/android-floating-action-button. How can I change the image of the main button? I want to change the button image right af
I faced same issue recently, I tried with following option
fab:fab_icon="@drawable/icon"
and
android:src="@drawable/icon" // change backgroung icon
even tried programmatically
fab_menu_btn.setImageResource();
Nothing worked.
Solution: In app's build.gradle file replace
compile 'com.getbase:floatingactionbutton:1.10.0'
to
compile 'com.github.toanvc:floatingactionmenu:0.8.9'
In .xml file Use:
In activity File:
floatingActionsMenu.setIcon(getResources().getDrawable(R.mipmap.icon));
Thanks