Comment of a ResourceItem

68 views
Skip to first unread message

Jake Wharton

unread,
Jan 28, 2014, 2:32:39 AM1/28/14
to adt...@googlegroups.com
Is it possible to get the documentation for a ResourceItem? I can't figure out how this is currently done and it's not obvious. I'm specifically looking to get the documentation for a string.

Also, are there plans to expose resource parsing helpers in the public API? Right now they are package scoped (specifically: ValueResourceParser).

Xavier Ducrohet

unread,
Jan 28, 2014, 12:53:19 PM1/28/14
to adt...@googlegroups.com
Which one? We have 2 resourceItem classes. One that was used in ADT and a new one that is part of the Resource Merger.

Are you looking at higher level documentation (since the JavaDoc is there already)? I do need to write one.


On Mon, Jan 27, 2014 at 11:32 PM, Jake Wharton <jakew...@gmail.com> wrote:
Is it possible to get the documentation for a ResourceItem? I can't figure out how this is currently done and it's not obvious. I'm specifically looking to get the documentation for a string.

Also, are there plans to expose resource parsing helpers in the public API? Right now they are package scoped (specifically: ValueResourceParser).

--
You received this message because you are subscribed to the Google Groups "adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adt-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

Jake Wharton

unread,
Jan 28, 2014, 2:50:15 PM1/28/14
to adt...@googlegroups.com
I'm using the resource merge one via a copied version of ValueResourceParser.

I haven't had more time to dig into the code (comments are probably just ignored), but I did notice this morning that the merged resources actually do not merge comments. I had thought comments were preserved which was what prompted this email.

If comments are not parsed here, how do they make it into the generated R?

Xavier Ducrohet

unread,
Jan 28, 2014, 3:04:51 PM1/28/14
to adt...@googlegroups.com
In Gradle, the comments shouldn't make it into the R class actually. It's a bug we have to fix.
Reply all
Reply to author
Forward
0 new messages