Package 

Class JSectionEntity

  • All Implemented Interfaces:
    com.chad.library.adapter.base.entity.MultiItemEntity , com.chad.library.adapter.base.entity.SectionEntity

    
    public abstract class JSectionEntity
     implements SectionEntity
                        

    仅供java使用 由于java无法实现SectionEntity中的默认接口实现,所以使用抽象类再封装一次,用于提供默认实现。

    • Method Summary

      Modifier and Type Method Description
      int getItemType() 用于返回item类型,除了头布局外,默认只有 NORMAL_TYPE 一种布局如果需要实现 item 多布局,请重写此方法,返回自己的type
      • Methods inherited from class com.chad.library.adapter.base.entity.SectionEntity

        getItemType, isHeader
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getItemType

         int getItemType()

        用于返回item类型,除了头布局外,默认只有 NORMAL_TYPE 一种布局如果需要实现 item 多布局,请重写此方法,返回自己的type