I have a horizontal LinearLayout with 3 ImageViews, but ImageView are much more wider than image are(rectangle when image is square). I've try to set adjustViewBound="true", than imageView become square but much more bigger. Also I've tryed to set scaleType="firXY" but then the image is scaling to fit rectangle imageView. Here is ma xml:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/llButtons">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_start_text"
android:id="@+id/imgStart"
android:layout_weight="1.5"
android:src="@drawable/ic_play"/>
<ImageView
android:id="@+id/imgReset"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.5"
android:text="@string/button_reset_text"
android:src="@drawable/ic_cls"/>
<ImageView
android:id="@+id/btnNext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.5"
android:text="@string/button_next_text"
android:src="@drawable/ic_next"/>
</LinearLayout>
And this is a result:
How can I set ImageView size as picture size?
