Reputation: 72
I am working on a learning tutorial which needs me to add a background picture to my app. So i moved a picture to "drawable" folder and selected that file in the background properties of the particular relative layout. but the picture does not show up in my working space and yet there are no errors given. someone please help me?
Upvotes: 0
Views: 3673
Reputation: 1
Solved my problem by renaming images...
Don't use dash (-) and don't start your image name with a number.
Example: Image 'sunset-1' would not show in my work space, but image 'sunset_1' did. Image '11sunset' did not show, but image 'x11sunset' did.
Hope this helps.
Upvotes: 0
Reputation: 164
Here the problem is with your picture name, because Resource Name must be start with character. So Rename your picture stored in drawable and start the name with character.
For example, change:
11987047_10205766000002495_8230961180700303415_n
to
x11987047_10205766000002495_8230961180700303415_n
Upvotes: 2
Reputation: 690
Is 11987047_10205766000002495_8230961180700303415_n your picture's name? Try to add a suffix to it, such as .jpg. Another possible reason is that the jpg size is too big, try another smaller picture.
Upvotes: 0