Skip to content
/ adapter Public
forked from tata88k/adapter

A quick adapter library for ListView , GridView , RecyclerView and ExpandableListView on android .

Notifications You must be signed in to change notification settings

idxiu/adapter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 

Repository files navigation

Adapter

A quick adapter library for ListView , GridView , RecyclerView and ExpandableListView on android.

[中文教程](http://www.jianshu.com/p/f18f77255952)

[ ![Download](https://api.bintray.com/packages/thepacific/maven/adapter/images/download.svg) ](https://bintray.com/thepacific/maven/adapter/_latestVersion)

![](https://github.com/ThePacific/QuickAdapter/blob/master/art/example.gif) # Features * Based on template type * Simple and clean api * Super esay to use and Much less code

BaseAdapterHelper

  • setText() Calls setText(String) on any TextView.
  • setAlpha() Calls setAlpha(float) on any View.
  • setVisible() Calls setVisibility(int) on any View.
  • linkify() Calls Linkify.addLinks(view, ALL) on any TextView.
  • setTypeface() Calls setTypeface(Typeface) on any TextView.
  • setProgress() Calls setProgress(int) on any ProgressBar.
  • setMax() Calls setMax(int) on any ProgressBar.
  • setRating() Calls setRating(int) on any RatingBar.
  • setImageResource() Calls setImageResource(int) on any ImageView.
  • setImageDrawable() Calls setImageDrawable(Drawable) on any ImageView.
  • setImageBitmap() Calls setImageBitmap(Bitmap) on any ImageView.
  • setImageUrl() Uses Glide to download the image and put it in an ImageView.
  • setOnClickListener()
  • setOnTouchListener()
  • setOnLongClickListener()
  • setTag()
  • setChecked()
  • setAdapter()

Gradle

compile 'com.github.thepacific:adapter:1.0.3'

RecyclerView , ListView , GrideView

  • RecyclerAdapterHelper and RecyclerAdapter for RecyclerView
  • AdapterHelper and Adapter for ListView and GridView

![](https://github.com/ThePacific/QuickAdapter/blob/master/art/grid.PNG)

ExpandableListView

  • ExpandableAdapterHelper and ExpandableAdapter for ExpandableListView

![](https://github.com/ThePacific/QuickAdapter/blob/master/art/expandable.PNG)

Limit

  • Currently, don't do getItemView().setTag() ,because ItemView tag has be set to retain Helper object .

Dependencies

compile 'com.github.bumptech.glide:glide:3.7.0'

#Thanks

About

A quick adapter library for ListView , GridView , RecyclerView and ExpandableListView on android .

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%