[英]Icon margin/padding destroyed
I've created a refresh animation to my icon.
我已经为图标创建了刷新动画。 But after setting the imageResource to the button the layout is broken.
但是在将imageResource设置为按钮后,布局被破坏了。
Before creating my animation and setting the imageResource the button looked like this with margin/padding:
在创建动画和设置imageResource之前,该按钮看起来像带有空白/边距:
I've set the imageResource with following code: 我用以下代码设置了imageResource:
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.
任何帮助都是非常有价值的。
check whether icon images are having same size. 检查图标图像是否具有相同大小。 resolution
解析度
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.