daimajia / daimajia/AndroidSwipeLayout

SwipeItemMangerImpl

Open
#339 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
12.3k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

Manger is implemented to prepare layouts with swipelayouts.
It will be good idea to be able to implement many diffrent layouts in list for example like:
header (without swipelayout)
subheader (without swipelayout)
item (with SWIPELAYOUT)

In class SwipeItemMangerImpl exception is thrown in method:

bind(View view, int position) {
int resId = swipeAdapterInterface.getSwipeLayoutResourceId(position);
SwipeLayout swipeLayout = (SwipeLayout) view.findViewById(resId);
if (swipeLayout == null)
throw new IllegalStateException("can not find SwipeLayout in target view");

I think this idea is too strict and the current solution is not universal.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.