For the case you're describing, it doesn't matter.

RelativeLayout only looks at its own children when resolving id references.

-- Kostya

27.12.2010 20:40, John Lussmyer ?????:
Yes, but that still doesn't assure that you won't collide with somebody elses custom view ID numbers.

On Mon, Dec 27, 2010 at 9:22 AM, Bret Foreman <[email protected] <mailto:[email protected]>> wrote:

    You could use a static value in your widget class. Increment the
    static value in the constructor and use that to initialize an ID that
    is local to the instance. Basically the classic singleton pattern. You
    can add serialization for the static if you plan to support multi-
    threading but that's not generally done in Android UIs.


--
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


--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
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