Re: [android-developers] Children of LinearLayout can't have @+id/something
The framework does it's own caching of the text values and restores them, my guess is that textIsSelectable=false disables that. Someone else indicated that calling "invalidate()" fixed the "issue".
Because all those views have the same ID, only one value is kept and they all get it after the rotation.
You should probably take his advice and give each view a unique id.
On Friday, May 10, 2013 2:56:19 AM UTC+3, Y2i wrote:
-- On Friday, May 10, 2013 2:56:19 AM UTC+3, Y2i wrote:
The situation with LinearLayout is pretty flaky. I finally made the project work - see the second attached project athttps://code.google.com/p/
android/issues/detail?id=55106 If you go to item_main.xml and change android:textIsSelectable from false to true, the bug shows up. Keep android:textIsSelectable="
true", but remove android:id="@+id/text" - the bug disappears again
The main reason I was experimenting with this LinearLayout is because I wanted to follow thy layout animation sample.
http://developer.android.com/
training/animation/layout.html
But it seems the situation is so unstable with LinearLayout and orientation change that I need to go back to the working ListView+Adapter approach and figure out how to do similar layout animations when adding items to the adapter and revalidating the list. I would appreciate it a lot if somebody could share their experiences with layout animation while using ListView + Adapter approach. Thank you!
--
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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home