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
{{ message }}
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.
I was trying to customise the PinnedListAdapter and I got ClassCastException, for line layoutParams = (LayoutParams) generateDefaultLayoutParams();
So I have changed it to
layoutParams = (AbsListView.LayoutParams) new AbsListView.LayoutParams(
AbsListView.LayoutParams.MATCH_PARENT,
AbsListView.LayoutParams.WRAP_CONTENT, 0);
And now it works fine,
Is this a bug ?
The text was updated successfully, but these errors were encountered:
Dy default PinnedSectionListView uses generateDefaultLayoutParams() of AbsListView, which is correct. If you change inheritance or override generateDefaultLayoutParams(), then it might break the implementation, which is expected consequence of such changes.
Hi,
I was trying to customise the PinnedListAdapter and I got ClassCastException, for line layoutParams = (LayoutParams) generateDefaultLayoutParams();
So I have changed it to
layoutParams = (AbsListView.LayoutParams) new AbsListView.LayoutParams(
AbsListView.LayoutParams.MATCH_PARENT,
AbsListView.LayoutParams.WRAP_CONTENT, 0);
And now it works fine,
Is this a bug ?
The text was updated successfully, but these errors were encountered: