Closed Shamik07 closed 8 years ago
Upgraded from 'eu.davidea:flexible-adapter:5.0.0-b7' to 'eu.davidea:flexible-adapter:5.0.0-b8' and still facing the same issue
@Shamik07, is the following function in AssignTaskExpandableHeaderItem
and ContactsExpandableHeaderItem
returns different layout?
@Override
public int getLayoutRes() {
return R.layout.recycler_expandable_header_item;
}
No they return the same layout ie R.layout.recycler_expandable_header_item; ... I think i got it now .. I ll try making separate header layouts
Its a little better .. I don't immediately get error .. but each time I switch to a new tab .. and then come back to the original one ( tab 1 to tab 2 to tab 1 ) .. I get the same error. Also initially Tab1's content are loaded in Tab2 and Tab2's content are loaded in Tab3 .. I ll keep working on it .. and try to figure it out. Thanks for the quick reply !
@Shamik07, with ViewPager
things are more complicated, I still need to create a valid example in the demoApp. However, you can do it. Focus on layouts and read the issue #70, it can help.
@Shamik07, need more help? I will try to create a sample with ViewPager, when I have more time. It was planned already.
@Shamik07, see latest SNAPSHOT release.
Hey .. Hi .. I am Shamik from India, First of all thank you for for such an excellent library. I have been using this library for over 3 months now. Went through a lot of libraries for Recyclerview Sticky Headers before finding this.. really appreciate your work.
1) For Bugs / Support I don't know if this is a bug or I haven't properly implemented your library. I trying to implement stickyheaders in a TabView/Tablayout with Viewpager. Each view/tab has an fragment with FlexibleAdapter .. all the data is loaded from a DatabaseService which uses volley to load data via models. Now the problem is if I have only one tab implementing FlexibleAdapter .. everything works fine. But if I have two tabs back to back ( for eg tab 1 and tab 2 ) implementing FlexibleAdapter it gives me an error ( mentioned below ) .. but if I implement it on alternate tabs ( for eg tab 1 and tab 3 ) ..everything works.
The error -
How I have implemented your library ... My code -
AssignFragment - Fragment that loads up via viewpageradapter
AssignAdapter :- Each fragment has its own seperate adapter
AssignTaskExpandableHeaderItem - Header Viewholder ( Each fragment has its own viewholder class )
AssignTaskSubItem - SubItem Viewholder ( Each fragment has its own viewholder class )
Attaching screenshot