When views with different type have same id and screen orientation changes,
either java.lang.ClassCastException: android.view.AbsSavedState$1 or java.lang.IllegalArgumentException: Wrong state class -- expecting View State will occur. (depends on the view's order) Because View.dispatchRestoreInstanceState() checks id only. You may wonder why anyone would make views with different type to have same id. But it can happen when you use tab activity. Imagine you have tab activity with two children activity. Tab1 is ListActivity and Tab2 is ExpandableListActivity. Both activity have id of "@android:id/list" but the type of view is different. This means we cannot use ListActivity & ExpandableListActivit at the same in one tab activity. or can we? Please correct me if I'm wrong... hopefully :)
-- 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

