我有以下imageButton
<ImageButton
android:id="@+id/header_buttonleft"
android:layout_width="40dip"
android:layout_height="40dip"
android:layout_alignParentLeft="true"
android:layout_marginLeft="10dip"
android:layout_marginTop="5dip"
android:src="@drawable/icon_download"
android:clickable="true"/>
但是当我在设备中加载我的应用程序时,它看起来太小了:
任何人都知道怎样才能让图标变大。我试着提高分辨率(实际上图标是70x70),但仍然不起作用。有什么想法吗?
发布于 2010-04-26 12:11:10
任何人都知道如何让图标变大。
做一个更大的按钮。
作为实验,从布局中删除android:src
,然后运行应用程序。这是ImageButton
在没有自定义背景的情况下可以使用的最小尺寸。
欢迎您创建自己的自定义ImageButton
背景与自定义的九补丁ImageButton
文件的不同背景状态,其中您调整九补丁控制框架,以允许在您的图标到按钮的边缘之间的一个较小的间隙。
https://stackoverflow.com/questions/2712778
复制相似问题