How to change FAB icon in an Activity during runtime. I have this code ->
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fabMainActivity);
I know this is possible using fab.setBackgroundDrawable();
but i am a newbie to android, don't understand how to do this.
Any help will be highly appreciated.
Thanks