相关疑难解决方法(0)

Android中的ImageButton

任何人都可以告诉我如何调整imageButton的大小以使图像精确拟合.这是我尝试的代码,但图像放置在我定位的位置, imageButton但我无法减小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>
Run Code Online (Sandbox Code Playgroud)

android imagebutton

24
推荐指数
3
解决办法
10万
查看次数

调整ImageButton的大小?

我有一个ImageButton,我正在使用包含的@android:drawable/ic_menu_more图像.但它太大了.调整大小的最佳方法是什么,以便更好地适应我的形式?还可以在xml中旋转吗?(只有一次,不是基于国家)

android

14
推荐指数
1
解决办法
4万
查看次数

标签 统计

android ×2

imagebutton ×1