/** * Constructor called from {@link #CREATOR} */ public ISavedState(Parcel ind, EasyRecyclerView recyclerView) { this.recyclerView = recyclerView; // Parcel 'in' has its parent(RecyclerView)'s saved state. // To restore it, class loader that loaded RecyclerView is required. IParcelable superState = (IParcelable)ind.ReadParcelable(recyclerView.Class.ClassLoader); mSuperState = superState != null ? superState : EMPTY_STATE; inChoiceMode = (ind.ReadInt() != 0); choiceState = ChoiceState.ReadFromParcel(ind); }
public override void OnAttachedToRecyclerView(RecyclerView recyclerView) { base.OnAttachedToRecyclerView(recyclerView); if (!(recyclerView is EasyRecyclerView)) { throw new IllegalStateException("EasyAdapter can only be attached to EasyRecyclerView"); } if (this.recyclerView != null) { throw new IllegalStateException("The EasyAdapter is already attached a EasyRecyclerView"); } this.recyclerView = (EasyRecyclerView)recyclerView; }
public override void OnDetachedFromRecyclerView(RecyclerView recyclerView) { base.OnDetachedFromRecyclerView(recyclerView); this.recyclerView = null; }
public OnLongClickListener(EasyRecyclerView recyclerView) { this.recyclerView = recyclerView; }
public ChoiceObserver(EasyRecyclerView recyclerView) { this.recyclerView = recyclerView; }
/** * Constructor called from {@link #onSaveInstanceState()} */ public ISavedState(IParcelable superState, EasyRecyclerView recyclerView) { this.recyclerView = recyclerView; mSuperState = superState != EMPTY_STATE ? superState : null; }
public ISavedState(EasyRecyclerView recyclerView) { this.recyclerView = recyclerView; mSuperState = null; }