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>