1,将我们的图片复制到res下边的drawable-hdpi文件夹下边
2,修改res下边的layout下边的xml文件
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<ImageButton
<ImageButton
</RelativeLayout>
本文介绍如何在Android应用中设置图片按钮。具体步骤包括将图片资源放置于项目的drawable-hdpi文件夹,并通过修改XML布局文件来定义图片按钮的位置及大小。
1821

被折叠的 条评论
为什么被折叠?