# adapter **Repository Path**: purewhitedream/adapter ## Basic Information - **Project Name**: adapter - **Description**: 适配器分androidx和support;androidx版本v2开头,support版本v1开头 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: androidx - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-30 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # adapter #### 介绍 version1开头基于supprot包的; version2开头以后基于androidx包; #### 功能 1. 适配器使用简便 2. 上拉加载更多,添加头尾(BaseMoreAdapter) 3. 全局布局(BaseMoreAdapter) #### 接入指南 1. xxxx 2. xxxx 3. xxxx #### 源码方法解析(常用方法),其他请看代码源码 | BaseAdapter |||| |-----|-----|-----|-----| | 方法名 | 功能说明 | 参数含义 | 返回值 | | addLayoutId(@LayoutRes int layoutId) | 适配器添加布局,在构造方法里面使用 | 布局id | 无 | | addLayoutId(int viewType,@LayoutRes int layoutId) | 同上 |参数1:该布局对应itemview的类型;参数2:布局id | 无 | | getD(int position) | 获取position的数据 | 参数1:第几个 | D | | getListData() | 获取list数据集合 | 无 | List | | getDataSize() | 获取list数据集合长度 | 无 | int | | getDataCount() | list集合在适配器展示的长度,可能存在折叠列表 | 无 | int | #### 参与贡献 1. 纯白梦 [gitee个人地址](https://gitee.com/profile)