Is it possible to get Eclipse to auto create resources after I reference them in the .java file?
-
e.g. int textColor = getResources().getColor(R.color.title_color); When title_color is not yet defined in a resource xml. I know I can't Ctrl+1 on it because eclipse then tries to "Create field title_color...." which modifies the R.java file. I'd like to be able to type the resource name here, then press a shortcut to take me to the resource xml file. Or alternatively, set a few and then do it in bulk from the resource file. Where it gives me a list of all the resources that are referenced but not yet created and I can then fill in their values. If not, what are the best practices for this?
-
Answer:
No, it's not possible. This functionality is provided by Google's Android Development Tool plugins, not the Eclipse platform. Yes, it's a great idea, and they should support it. does this.
Miguel Paraz at Quora Visit the source
Other answers
I just found out that for strings I can just enter the string, like "hello" then Ctrl+1 -> Extract String. So at least you can do it for Strings at least... shame about the others.
Tim Hopkins
Related Q & A:
- How do I make a window in Java?Best solution by Stack Overflow
- how to write to java file in the best way?Best solution by Stack Overflow
- How do I retrieve a URL in Java?Best solution by Stack Overflow
- If i go to university in Italy, is it possible to get my Italian and Canadian degree?Best solution by ca.answers.yahoo.com
- How do I get a job in Human Resources?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.