谁能告诉我如何调整大小imageButton
以完全适合图像?这是我尝试过的代码,但图像放置在我使用 定位的位置android:scaleType
,但我无法减小imageButton
. 请帮我纠正这个问题。我尝试的代码是:
<ImageButton>
android:id="@+id/Button01"
android:scaleType="fitXY" // i have tried all the values for this attr
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:cropToPadding="false"
android:paddingLeft="10dp"
android:src="@drawable/eye"> // this is the image(eye)
</ImageButton>