In my app i have to set up a small image as background, to show text and image on it.
1)I tried to set image as background of a layout some thing like
<layout android:background="imagePath"> <ImageView/> <TextView/></layout>
2)Tried to show image in web view.
But the image has lost its quality. In iphone we can resiz it like stretchableImageWithLeftCapWidth:23.0f topCapHeight:15.0
i want to know what should be the best method for image resizing in android
Best way to do stretchable background is 9-patch drawable. Android sdk provides instrument for simple creating 9-patches.
Using this you have to manage part of Image which not losing quality.