Giter VIP home page Giter VIP logo

coder698 / all-base-adapter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mcxtzhang/all-base-adapter

0.0 1.0 0.0 25.2 MB

Adapter terminator, including DataBinding, any ViewGroup, list(Rv, Lv ). Write Adapter, it is enough .Adapter终结者,包含DataBinding,任意ViewGroup,Rv、Lv列表。写Adapter,有它就够了

Home Page: https://gold.xitu.io/post/584d52fdb123db00661c59fa

License: Apache License 2.0

Java 100.00%

all-base-adapter's Introduction

all-base-adapter

Adapter 终结者

Adapter终结者,包含DataBinding,任意ViewGroup,Rv、Lv列表。写Adapter,有它就够了

Some base Adapters apply to any ViewGroup. Such as LinearLayout, ScrollView, and custom ViewGroups. Of course, including RecyclerView, ListView ..

一些Base Adapter,适用于任意ViewGroup。像LinearLayout,ScrollView以及自定义的ViewGroup。当然也包括RecyclerView,ListView。

现在也加入了DataBinding用的BaseAdapter。

Related posts:

相关博文: ViewGroup 篇 封装博文

DataBinding 篇 封装博文

If you like, point a star .Thank you very much!

喜欢随手点个star 多谢

The ultimate goal:

最终的目标:

To meet all the development needs of needs adapter for ViewGroup

满足开发中所有需要adapter需求的ViewGroup。

Where to find me:

在哪里找到我:

My github:

我的github:

https://github.com/mcxtzhang

My CSDN Blog:

我的CSDN博客:

http://blog.csdn.net/zxt0601

My xitu.io:

我的稀土掘金:

http://gold.xitu.io/user/56de210b816dfa0052e66495

My jianshu:

我的简书:

http://www.jianshu.com/users/8e91ff99b072/timeline


效果一览:

APP首页常见

多种Item,数据结构相同。

这次用横向展示 多种Item,数据结构不同。

文首提到的,一开始是个水平ScrollView

替换成流式布局

使用:

Step 1. Add the JitPack repository to your build file

Step 1. 在项目根build.gradle文件中增加JitPack仓库依赖。

    allprojects {
		repositories {
			...
			maven { url "https://jitpack.io" }
		}
	}

Step 2. Add the dependency

    dependencies {
	        compile 'com.github.mcxtzhang:all-base-adapter:V1.3.0'
	}

Step 3.

DataBinding相关点这里

ViewGroup相关点这里

About

ViewGroup

Update log

2016 12 13 V1.1.0:

  • 加入DataBinding的BaseAdapter
  • 加入RecyclerView、ListView BaseAdapter初版。

to do list

  • 考虑加入复用缓存池
  • 考虑替换onBindView()ItemView->通用的ViewHolder,这样可以少写一些findViewById()代码
  • 整合DataBinding 的通用Adapter入库。
  • 整合 RecyclerView、ListView的通用Adapter入库。
  • 加入一些自定义ViewGroup入库,例如流式布局,九宫格,Banner轮播图。

all-base-adapter's People

Contributors

mcxtzhang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.