Android-扩展图像并保持缩放
我希望在保持比例的同时,有一个宽度为width=“fill\u parent”和高度为“wrap\u content”的图像(DistantImageView,网络图像视图) 图像比屏幕小,因为它来自网络,我不知道比例 我试过了Android-扩展图像并保持缩放,android,imageview,scale,Android,Imageview,Scale,我希望在保持比例的同时,有一个宽度为width=“fill\u parent”和高度为“wrap\u content”的图像(DistantImageView,网络图像视图) 图像比屏幕小,因为它来自网络,我不知道比例 我试过了 <DistantImageView android:id="@+id/image" android:layout_height="wrap_content" android:layout_width="fill
<DistantImageView
android:id="@+id/image"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:scaleType="fitCenter"
/>
它不工作,图像比屏幕小
提前谢谢