@Override protected void onRelease() { super.onRelease(); mExpandableItemAdapter = null; mExpandableListManager = null; mOnGroupExpandListener = null; mOnGroupCollapseListener = null; }
/** * Gets group view type from a raw view type. * * @param rawViewType raw view type value (return value of {@link androidx.recyclerview.widget.RecyclerView.ViewHolder#getItemViewType()}) * @return Group view type for the given raw view type. */ public static int getGroupViewType(int rawViewType) { return ItemViewTypeComposer.extractWrappedViewTypePart(rawViewType); }
/** * <p>Gets combined ID for child item.</p> * <p>bit 0-27: all bits are set to 1 * bit 28-55: Lower 28 bits of the groupId * bit 56-61: reserved</p> * * @param groupId The ID of the group that contains the child. * @return The unique ID of the child across all groups and children in the list */ public static long getCombinedGroupId(long groupId) { return ItemIdComposer.composeExpandableGroupId(groupId); }
/** * Checks whether the passed view type is a group's one. * * @param rawViewType raw view type value (return value of {@link androidx.recyclerview.widget.RecyclerView.ViewHolder#getItemViewType()}) * @return True for the a group view type, otherwise false */ public static boolean isGroupViewType(int rawViewType) { return ItemViewTypeComposer.isExpandableGroup(rawViewType); }
public static int extractWrappedViewType(long packedViewType) { final int segment = (int)(packedViewType >>> 32) & 0xFFFF; final int viewType = (int) (packedViewType & 0xFFFFFFFFL); return ItemViewTypeComposer.composeSegment(segment, viewType); }
/** * Gets group item ID from a raw ID. * * @param rawId raw item ID value (return value of {@link androidx.recyclerview.widget.RecyclerView.ViewHolder#getItemId()}) * @return Group item ID for the given raw item ID. */ public static long getGroupItemId(long rawId) { return ItemIdComposer.extractExpandableGroupIdPart(rawId); }
/** * Gets child item ID from a raw ID. * * @param rawId raw item ID value (return value of {@link androidx.recyclerview.widget.RecyclerView.ViewHolder#getItemId()}) * @return Child item ID for the given raw item ID. */ public static long getChildItemId(long rawId) { return ItemIdComposer.extractExpandableChildIdPart(rawId); }
/** * Checks whether the passed item ID is a group's one. * * @param rawId raw item ID value (return value of {@link androidx.recyclerview.widget.RecyclerView.ViewHolder#getItemId()}) * @return True for the a group view type, otherwise false */ public static boolean isGroupItemId(long rawId) { return ItemIdComposer.isExpandableGroup(rawId); }
/** * <p>Gets combined ID for child item.</p> * <p>bit 0-27: Lower 28 bits of the childId * bit 28-55: Lower 28 bits of the groupId * bit 56-61: reserved</p> * * @param groupId The ID of the group that contains the child. * @param childId The ID of the child. * @return The unique ID of the child across all groups and children in the list */ public static long getCombinedChildId(long groupId, long childId) { return ItemIdComposer.composeExpandableChildId(groupId, childId); }
@Override protected void onHandleWrappedAdapterItemRangeChanged(int positionStart, int itemCount) { super.onHandleWrappedAdapterItemRangeChanged(positionStart, itemCount); }
protected void onHandleWrappedAdapterChanged() { notifyDataSetChanged(); }
protected void onHandleWrappedAdapterItemRangeChanged(int positionStart, int itemCount, Object payload) { notifyItemRangeChanged(positionStart, itemCount, payload); }
protected void onHandleWrappedAdapterItemRangeRemoved(int positionStart, int itemCount) { notifyItemRangeRemoved(positionStart, itemCount); }
private static long signedLongMin(int bitWidth) { return (-1L & ~signedLongMax(bitWidth)); } }
private static int signedIntMin(int bitWidth) { return (-1 & ~signedIntMax(bitWidth)); } }
/** * Gets child view type from a raw view type. * * @param rawViewType raw view type value (return value of {@link androidx.recyclerview.widget.RecyclerView.ViewHolder#getItemViewType()}) * @return Child view type for the given raw view type. */ public static int getChildViewType(int rawViewType) { return ItemViewTypeComposer.extractWrappedViewTypePart(rawViewType); }
@Override protected void onRelease() { super.onRelease(); mSwipeableItemAdapter = null; mSwipeManager = null; mSwipingItemId = RecyclerView.NO_ID; }
@Override protected void onHandleWrappedAdapterItemRangeChanged(int positionStart, int itemCount) { super.onHandleWrappedAdapterItemRangeChanged(positionStart, itemCount); }
@Override protected void onRelease() { super.onRelease(); mDraggingItemViewHolder = null; mDraggableItemAdapter = null; mDragDropManager = null; }
@Override protected void onHandleWrappedAdapterItemRangeChanged(int positionStart, int itemCount, Object payload) { super.onHandleWrappedAdapterItemRangeChanged(positionStart, itemCount, payload); }