Hi,
Depending on what version of JB you are using you should either use the
public.xml or symbols.xml to add your new id's.
Adding new id's to public.xml was abandoned in this commit:
http://git.omapzoom.org/?p=platform/frameworks/base.git;a=commitdiff;h=9d9ece3c1e16001b63244459cdf4b428f4272d2e
I still don't understand why we need to add resource to public.xml. As
Alex said, I didn't have any problem with public.xml in GB and ICS.
Furthermore, do I need to add string resource to public.xml whenever
adding string to string.xml?
Julia.
--
unsubscribe:
This mechanism has been around for a long time.
Please keep in mind that you should only add private symbols to public.xml
(yes, it's weird that the file is called public.xml but contains a mix of
private and public symbols). Adding new public symbols is an API change,
which is not allowed and
Thanks Jeffrey for the tip. Is it something new since JB? I don't remember
needing that neither in GB nor ICS.
Any link where more info about this can be found? I've search Google but I
couldn't find any relevant info, excep this thread on Google Groups.
THanks in advance,
Alex
On Friday,
Thank you Jeff, that was indeed what was missing.
Another quick question, when I add symbols to public.xml, rebuilding the
framework-res.apk doesn't seem to be enough to regenerate the R.java file.
So every time I have to do this, I would have to rebuild the whole system
(make). Is there a make
Add the id to public.xml as a java-symbol element in the top part of the
file where all of the private symbols are declared.
On Jul 26, 2012 9:23 AM, Nathan Barraille nathan.barrai...@gmail.com
wrote:
Hello,
I am trying to add a TextView in
Hello,
I am trying to add a TextView in
frameworks/base/core/res/res/layout/keyguard_screen_unlock_landscape.xml,
with a specific ID so that I could reuse it in the Java code, but it looks
like this ID is never added to com.android.internal.R.java, so every time I
try to access it from the