If the two layouts are used for the same activity but with different
orientations, then you will need to keep the IDs consistent between them.

On Tue, Jan 6, 2009 at 2:51 PM, skink <[email protected]> wrote:

>
> On 6 Sty, 21:17, "Dianne Hackborn" <[email protected]> wrote:
> > It only needs to be unique within a view hierarchy (or sub-view
> hierarchy)
> > in which you are looking for the ID.
> >
> i thought exactly the same way but when i declared the same IDs in
> different layout files i got strange errors when changing screen
> orientation - i think it was TextView.onRestoreInstanceState
> (Parcelable) - class cast exception
>
> pskink
> >
>


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