GAG'sB
GAG'sB

Reputation: 109

Background Image is not getting displayed on Phone

I am facing this annoying problem where my apps background image is displayed on the emulator but not on my Samsung S4 Active Device. I tried to execute the app in another device and it worked but i dont know what's going on with my phone. I did the Factory reset but to no avail. I am using Android studio for doing the coding and everything was working fine few days back but now i am having the problem with that particular background image when i tried another image and it worked fine in my phone.

Did anyone faced such an issue ?Any help will be appreciated as i am not able to proceed because of this problem.

enter code here`
 <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:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"
    android:background="@drawable/background_draft">
    <TextView android:text="@string/hello_world" android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        />
   </RelativeLayout>
    

Thanks for your help.

Regards, GB

Upvotes: 2

Views: 4421

Answers (1)

jc4prez666
jc4prez666

Reputation: 81

Reducing the image size fixed this problem for me also. I was trying to use a jpg that was 1080 x 1920. When I reduced it to 540 x 960 the background image appeared in my device (a regular GS4). Thanks Stack.

Upvotes: 8

Related Questions