嗨,我有可扩展的图像 url,我想自动适应我正在使用的图像视图。这是我的图像视图代码
<com.livetalkback.xfactor2012.ui.views.CmsRemoteImageView
android:id="@+id/categoryThumbnail"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="4dp"
android:src="@drawable/ic_category_thumb_default" />
如果附加具有所需高度和宽度的 url,则其会自动调整但我不想附加硬编码高度和宽度,因为我的应用程序支持多种屏幕尺寸设备。请帮忙