On Mon, Aug 24, 2009 at 4:08 AM, Spektor Yaron <[email protected]> wrote:

> >it will be done very differently than what you are describing here (rather
> would probably be something like the approach I was describing before).
> meaning querying for the resource ids reliyng on thier sequential nature?
> and then getting their resource name etc. from the getResourceEntryName(int
> resid)
>

No, the description of what you said you wanted to do for skinning -- going
and finding another .apk and trawling through its resources.


> >for example you could just define the resource IDs that are in the skin
> and what they should contain and not have to worry about any analysis of the
> resources.
> not sure i understand what you mean. how do you define the resource IDs? as
> they are generated.
> are you referring to "hard coding" the allowed names in Resources for each
> skin? or maybe using the file system instead of the resources (would i be
> able to inflate a layout the resides on the file system and not in
> resources?)
> What i would like to accomplish is to not know anything about the xml file
> naming (i will need to know about "layout" and "drawable" etc.)
>

Yes, just hard-code the resources.  There are, after all, a fixed number of
layouts and drawables and other things that an application will know what to
do with.  So just given them fixed names or IDs and be done with it.

-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to