I am making an image with my s4 Samsung device which I am trying to put as splash image for my app but I am facing problem that the image is being displayed horizontal and not vertical when I run the app on the device. At first, I put the image in the drawable-hdpi
directory and later in drawable-mdpi, drawable-xhdpi and drawable-xxhdpi
directories but I am getting the same result.
How can I fix it?
xml file
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background= "@drawable/splash_background"
>
</LinearLayout>