I am trying to setup a splash screen. When I am adding a background in LinearLayout, the xml is not showing me the android:background option. I have already added the (600 X 400).png image into @drawable/hdpi folder. Please help me out.
- May be intellisense is broken in your Eclipse, if you add it manually does it work?M-Wajeeh– M-Wajeeh2013-12-05 13:05:50 +00:00Commented Dec 5, 2013 at 13:05
- what is the name of your png file?M-Wajeeh– M-Wajeeh2013-12-05 13:07:42 +00:00Commented Dec 5, 2013 at 13:07
- I use Eclipse and sometimes it doesn't tell me which attributes I can use, mostly when I have custom schemas as well declared in my xml along with the default xmlns:android="schemas.android.com/apk/res/android"Niko– Niko2013-12-05 13:09:45 +00:00Commented Dec 5, 2013 at 13:09
- @M-WaJeEh name of the image is "splash_backgroung"me40– me402013-12-05 13:12:21 +00:00Commented Dec 5, 2013 at 13:12
- 2have you tried to Clean your project ?!Rudi– Rudi2013-12-05 13:15:35 +00:00Commented Dec 5, 2013 at 13:15
| Show 1 more comment
3 Answers
It can happen sometime to me too, for no particular reason whatsoever. However, if you just write it down, without suggestion from eclipse, it will still be shown :)
4 Comments
Niko
It would be nice to figure out why it happens and how to get it working again, I have seen that in some xml it doesn't work and in another in same project it works.
SteBra
I honestly never gave it too much thought. It can be just an annoying little bug in Eclipse. Same thing as you sometimes have to build your project in order for java to recorgnise your new layout, when you're trying to setContentView.
SteBra
Also, similar bug to this one is with the Xcode, when you dont get a sugestion for some ViewController.h, when you are trying to connect actual layout to the class....this doesn't have to do much with this question, Im just reffering that it might be some minor thing
me40
Thank You guys , it was happening cz of Eclipse only , just cleaned my project and i was good to go .. bt surely it's a headache..