Declare the scale type :
android:scaleType="centerCrop"
Pregunta
How can I use an image background for all android device without stretch it?
I've tried on Galaxy S3, S4 and Tab3 but the image is deformed. have you any suggestions?
This is the code:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/background_carrying_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/c"
android:orientation="vertical" >
</LinearLayout>
Thanks
Solución
Declare the scale type :
android:scaleType="centerCrop"