Package 

Class RecyclerView.LayoutParams

    • Method Detail

      • viewNeedsUpdate

         boolean viewNeedsUpdate()

        Returns true if the view this LayoutParams is attached to needs to have its contentupdated from the corresponding adapter.

      • isViewInvalid

         boolean isViewInvalid()

        Returns true if the view this LayoutParams is attached to is now representingpotentially invalid data. A LayoutManager should scrap/recycle it.

      • isItemRemoved

         boolean isItemRemoved()

        Returns true if the adapter data item corresponding to the view this LayoutParamsis attached to has been removed from the data set. A LayoutManager may choose totreat it differently in order to animate its outgoing or disappearing state.

      • isItemChanged

         boolean isItemChanged()

        Returns true if the adapter data item corresponding to the view this LayoutParamsis attached to has been changed in the data set. A LayoutManager may choose totreat it differently in order to animate its changing state.

      • getViewLayoutPosition

         int getViewLayoutPosition()

        Returns the adapter position that the view this LayoutParams is attached to correspondsto as of latest layout calculation.

      • getBindingAdapterPosition

         int getBindingAdapterPosition()

        Returns the up-to-date adapter position that the view this LayoutParams is attached tocorresponds to with respect to the Adapter that bound this View.