hello everyone and thanks for your helps.
i ve a project on google android studio.
i m using an imageview inside vertical linearlayout.
here my parameters;
[HIGH]<ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/imageView2"
android:src="@drawable/myimg" />[/HIGH]
in attachment you can see my image (red block) and imageview borders (blue line)
there is no problem with width, it is %100 of my layout, but i want my image to fit the area while keeping the aspect ratio. as you can see in my attachment there are white spaces, the imageview height is bigger than my image, how can i fit image in imageview?
i ve a project on google android studio.
i m using an imageview inside vertical linearlayout.
here my parameters;
[HIGH]<ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/imageView2"
android:src="@drawable/myimg" />[/HIGH]
in attachment you can see my image (red block) and imageview borders (blue line)
there is no problem with width, it is %100 of my layout, but i want my image to fit the area while keeping the aspect ratio. as you can see in my attachment there are white spaces, the imageview height is bigger than my image, how can i fit image in imageview?