1if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
2 floatingActionButton.setImageDrawable(getResources().getDrawable(R.drawable.ic_full_sad, context.getTheme()));
3 } else {
4 floatingActionButton.setImageDrawable(getResources().getDrawable(R.drawable.ic_full_sad));
5 }
6
1floatingActionButton.setImageDrawable(ContextCompat.getDrawable(getContext(), R.drawable.ic_full_sad));