The asterisk is used to access private resources. Do NOT use it, it
will automatically break with the next update of Android. This
mechanism can only be used with applications that are compiled at the
same time as the entire system. Unlike private Java APIs, which may or
may not disappear/break with a new release of the system, private
resources are pretty much guaranteed to change.

A resource is identified by a generated number. Public resources have
a number that stays the same from release to release whereas private
resources get a different number every time.

On Wed, Jun 10, 2009 at 12:20 AM, Alfred<[email protected]> wrote:
>
> I noticed that in Android source code, layout file, there are 2 ways
> to reference a resource, could someone tell me what's the difference?
>
> android:icon="@*android:drawable/ic_menu_stop"
> android:icon="@android:drawable/ic_menu_recent_history"
>
> >
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  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