2
我有一个包含6个图像的线性布局,这些图像水平地跨越线性布局。以线性布局均匀缩放图像
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@layout/roundedcorner">
<ImageView
android:id="@+id/Icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/someImage">
</ImageView>
...
的问题是,前5个图像不扩展,并采取他们的像素宽度,和第6图像被碾碎了,因为没有水平方向左足够的空间。
有没有办法缩小所有的图像,使他们有一个统一的外观?