0
存在一个包含大量矢量图像的对话框。如何计算任何屏幕的每张图片的大小?RecyclerView中的ImageViews(带有VectorDrawables)的大小
如果我使用
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ava_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/ava_item_imageview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:adjustViewBounds="true"/>
</FrameLayout>
我得到这个结果
,但我需要自动设置大小imageviews。怎么样?