I've created a refresh animation to my icon. But after setting the imageResource to the button the layout is broken.
Before creating my animation and setting the imageResource the button looked like this with margin/padding:
I've set the imageResource with following code:
ImageView reloadButton = (ImageView) menu.findItem(R.id.menu_reloaditem).getActionView();
reloadButton.setImageResource(R.drawable.ic_menu_reloadentry);
Unable to track reason for this issue. Any help would be really valuable.