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

