I got one FloatingSearchView(id: search_bar, and I have no other view with the same id or other FloatingSearchView) in the third page of the four-paged viewpager. In the second loading of the third page(I click the third page then first page and the third again), , I ran it and got java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to com.arlib.floatingsearchview.FloatingSearchView$SavedState. After searching for the solution and didn't got the one for my case, I try to change the id to another like "search_bar_test" or else and it worked. I thought there might be a view with id "search_bar" or other reason...(haven't checked the source code)
I got one FloatingSearchView(id: search_bar, and I have no other view with the same id or other FloatingSearchView) in the third page of the four-paged viewpager. In the second loading of the third page(I click the third page then first page and the third again), , I ran it and got
java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to com.arlib.floatingsearchview.FloatingSearchView$SavedState
. After searching for the solution and didn't got the one for my case, I try to change the id to another like "search_bar_test" or else and it worked. I thought there might be a view with id "search_bar" or other reason...(haven't checked the source code)