How can i make my app support multiple devices?
Im making the app without engines like libgdx so i can understand android development better(i guess).
I’ve made different resolution images for hdpi,mdpi and ldpi.
What dp width and height should i use in my xml code so it support most of the devices and does not look stretched?
Should i make different layouts for different devices or something?
Here is my xml code for the splash image:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/backgroundId"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/black"
android:gravity="center"
android:orientation="vertical" >
<ImageView
android:id="@+id/splashId"
android:layout_width="match_parent"
android:layout_height="240dp"
android:background="@drawable/splash"
android:contentDescription="@string/splash"
android:orientation="vertical" >
</ImageView>
</RelativeLayout>
Thank you.