相关疑难解决方法(0)

Android:调整XML格式的图像视图

我有一个太大而不适合屏幕的图像,我希望它在屏幕上相当小.如何通过XML更改图像的大小?

我试过了:

<ImageView
android:id="@+id/image"
android:layout_width = "100dp"
android:layout_height= "100dp"
android:scaleType="center"
android:layout_gravity="center_horizontal|bottom"
android:src="@drawable/dashboard_rpm_bottom"
>
</ImageView>
Run Code Online (Sandbox Code Playgroud)

但图像没有调整大小...它被裁剪.有任何想法吗?

xml android imageview

44
推荐指数
2
解决办法
16万
查看次数

标签 统计

android ×1

imageview ×1

xml ×1