fragment - Wrong state class, expecting View State but received class android.widget.CompoundButton$SavedState instead -
java.lang.illegalargumentexception: wrong state class
, expecting view state received class android.widget.compoundbutton$savedstate
instead. happens when 2 views of different type have same id in same hierarchy. view's id id/0x2. make sure other views not use same id.
its occurs when screen rotate , when when trying go fragment no id repeated plzz 1 me
i have resolve .... because of duplication of ids of view when add view dynamically , not set ids (with same text of radio button in case)
to resolve first check views u adding dynamically
Comments
Post a Comment