How to set android:src Icon through programmatically?
I have tried
fab.setImageResource(getResources().getDrawable(R.drawable.ic_save));
- 6 years ago
there is an only small mistake you have done.
try this:
fab.setImageResource(R.drawable.ic_save);
Hot Questions