public class

ExpandableItemState

extends Object
java.lang.Object
   ↳ com.h6ah4i.android.widget.advrecyclerview.expandable.ExpandableItemState

Class Overview

Helper class for decoding getExpandStateFlags() flag values.

Summary

Public Constructors
ExpandableItemState()
Public Methods
int getFlags()
boolean hasExpandedStateChanged()
Checks whether the expanded state is changed or not.
boolean isChild()
Checks whether the item is a child item.
boolean isExpanded()
Checks whether the group is expanded.
boolean isGroup()
Checks whether the item is a group item.
boolean isSwiping()
Checks whether the swiping is currently performed.
boolean isUpdated()
Checks whether state flags are changed or not.
void setFlags(int flags)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ExpandableItemState ()

Public Methods

public int getFlags ()

public boolean hasExpandedStateChanged ()

Checks whether the expanded state is changed or not. You can use this method to determine the group item indicator should animate.

Returns
  • True if the group's expanded state has changed, otherwise false.

public boolean isChild ()

Checks whether the item is a child item.

Returns
  • True if the associated item is a child item, otherwise false.

public boolean isExpanded ()

Checks whether the group is expanded.

Returns
  • True if the expandable group is expanded, otherwise false.

public boolean isGroup ()

Checks whether the item is a group item.

Returns
  • True if the associated item is a child item, otherwise false.

public boolean isSwiping ()

Checks whether the swiping is currently performed.

Returns
  • True if the user is swiping an item, otherwise else.

public boolean isUpdated ()

Checks whether state flags are changed or not.

Returns
  • True if flags are updated, otherwise false.

public void setFlags (int flags)