更新系统或者更换Eclipse后,双击Eclipse-drawable,或者在布局文件中,查看图片时,显示乱码。png 和 jpg

在Eclipse中查看图片资源显示乱码
这里写图片描述

修改方法:
1、打开电脑上随便一个图片,右击 ——打开方式——选择打开图片的应用并设置默认打开方式
这里写图片描述

2、重启Eclipse 再查看就OK了。
3、不同格式的图片,都要设置默认打开方式。比如png,JPG

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,我可以为您提供一些指导。首先,您需要在Eclipse创建一个Android项目。然后,您可以使用相对布局来创建软件更新提示界面。 下面是一些示例代码,可以帮助您开始: ```xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"> <ImageView android:id="@+id/update_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_update" android:layout_marginTop="16dp" android:layout_centerHorizontal="true" /> <TextView android:id="@+id/update_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="软件更新" android:textSize="24sp" android:textColor="@android:color/black" android:layout_below="@id/update_icon" android:layout_centerHorizontal="true" android:layout_marginTop="16dp" /> <TextView android:id="@+id/update_message" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="发现新版本,是否更新?" android:textSize="18sp" android:textColor="@android:color/black" android:layout_below="@id/update_title" android:layout_centerHorizontal="true" android:layout_marginTop="16dp" /> <Button android:id="@+id/update_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="立即更新" android:layout_below="@id/update_message" android:layout_centerHorizontal="true" android:layout_marginTop="16dp" /> </RelativeLayout> ``` 在这个示例,我们使用了RelativeLayout布局,并添加了一个ImageView用于显示更新图标,两个TextView用于显示标题和消息,以及一个Button用于触发更新操作。我们使用了各种属性来定位和对齐这些视图,例如layout_below、layout_centerHorizontal、layout_marginTop等。 您可以根据需要对这个示例代码进行修改,以满足您的具体需求。希望这可以帮助到您!

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值