I'm learning Android programming, and am having a problem when I want to add a Background Image to an Activity that says hello android
(The default app when we create a project). I tried with way smaller images and it worked, but I want to use a big image, and when I use that big image, it doesn't work on my device, which is Samsung Galaxy Grand Duos.
I'm using the android:background="@drawable/my_big_image"
inside the activity_main.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity"
android:background="@drawable/a_real_big_image"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world"
/>
</RelativeLayout>
The image is png, and its dimensions are 1688x1464. I put that image in every single folder that says drawable.
Do you know how to solve this error?
Thanks in advance.