If we inflate from the same layout, all child elements within that layout 
will have the same ids by definition.  If framework does not allow adding 
children inflated from the same file to a LinearLayout I would consider it 
as a not very good framework :(    Even if the framework does its own 
caching under the hood and applies the saved state to the view that is 
CREATED FROM SCRATCH after the orientation change, how can we explain that 
everything works and the values are applied properly when we remove ID 
attribute?  How would the framework find where to assign the correct values 
to?  It does not make sense.  

Anyway, I'll move back ListView/Adapter and figure out how to do the 
animation myself. The animation sample given at the training 
section<http://developer.android.com/training/animation/layout.html>is half 
baked, it does not preserve the state on rotation.  If we modify 
the sample then it will work as expected.  But the reason it works as 
expected is because views use @android:id/text1, which is a pre-defined ID. 
 But if we replace that ID with @+id/text1, even the sample from the 
training section stops working.  There is too much flaky stuff there from 
my perspective.  

Thanks everyone a lot for your time!

Yuri

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to