How to scale ImageView
to full screen of the device when the bitmap is 240*240 size.
I have used following code.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/layoutBGColor"
android:clickable="true" >
<ImageView
android:id="@+id/fullImage"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY" />
------
ImageView iv = (ImageView)findViewById(R.id.fullImage);
iv..setImageBitmap(bitmap);
the bitmap is 240*240, bitmap is looks stratched. I have googled this and this but none of them worked. Please suggest me How can I set bitmap in full screen without stratching.