相关疑难解决方法(0)

Android小部件ImageButton在旋转屏幕时丢失图像

我的主屏幕上有一个小部件,其中有几个具有默认背景图像的ImageButton.通过配置活动,我可以更改任何ImageButton上的图像.问题是,当屏幕旋转时,ImageButton上的图像会消失,然后会变回默认图像.

我不知道为什么会发生这种情况或如何解决它

android background widget rotation imagebutton

4
推荐指数
1
解决办法
2617
查看次数

标签 统计

android ×1

background ×1

imagebutton ×1

rotation ×1

widget ×1