I want to decrease ImageView's height as much as TextView's height and keep it's aspect ratio. real size of image is : 128\*128

Here is my code:

```
   <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="#b6006a"
        android:gravity="center_horizontal"
        android:orientation="horizontal">

    <ImageView
        android:id="@+id/ImageView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:maxHeight="10dp"
        android:minHeight="40dp" 
        android:maxWidth="40dp"             
        android:layout_weight="1"
        android:adjustViewBounds="true"            
        android:padding="5dip"
        android:scaleType="fitXY"
        android:src="@drawable/icon" />

    <TextView
        android:id="@+id/TextView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:background="#b6006a"            
        android:padding="10dip"
        android:text="New Message"
        android:textColor="#fff"
        android:textStyle="bold"
        android:textSize="20dp" />

    </LinearLayout>

```

And my result is :
[![enter image description here](https://i.stack.imgur.com/O5aII.png)](https://i.stack.imgur.com/O5aII.png)

Any suggestion?