You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When XRecyclerView instance num > 1 in an Activity, like this:
eg:
Two Fragment in one Activity:the First fragment has an XRecyclerView with do addHeaderView() one times, and the Second fragment has an XRecyclerView with do addHeaderView() two times, then App crashed!
So, I checked the class XRecyclerView, found that: private static List<Integer> sHeaderTypes = new ArrayList<>();
So I remove the flag static, like this: private List<Integer> sHeaderTypes = new ArrayList<>();
OK, well done, problem solved!
The text was updated successfully, but these errors were encountered:
When XRecyclerView instance num > 1 in an Activity, like this:
eg:
Two Fragment in one Activity:the First fragment has an XRecyclerView with do addHeaderView() one times, and the Second fragment has an XRecyclerView with do addHeaderView() two times, then App crashed!
So, I checked the class XRecyclerView, found that:
private static List<Integer> sHeaderTypes = new ArrayList<>();
So I remove the flag static, like this:
private List<Integer> sHeaderTypes = new ArrayList<>();
OK, well done, problem solved!
The text was updated successfully, but these errors were encountered: