RecyclerView通用适配器
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
dependencies {
compile 'com.github.eicky:BaseRecyclerViewAdapter:1.0'
}
##Code
mQuickAdapter = new QuickAdapter<Integer>(this, R.layout.item) {
@Override
protected void onBindViewHolder(BaseAdapterHelper helper, Integer integer, int position) {
helper.setText();
....
}
};
setText()
CallssetText(String)
on any TextView.setAlpha()
CallssetAlpha(float)
on any View.setVisible()
CallssetVisibility(int)
on any View.linkify()
CallsLinkify.addLinks(view, ALL)
on any TextView.setTypeface()
CallssetTypeface(Typeface)
on any TextView.setProgress()
CallssetProgress(int)
on any ProgressBar.setMax()
CallssetMax(int)
on any ProgressBar.setRating()
CallssetRating(int)
on any RatingBar.setImageResource()
CallssetImageResource(int)
on any ImageView.setImageDrawable()
CallssetImageDrawable(Drawable)
on any ImageView.setImageBitmap()
CallssetImageBitmap(Bitmap)
on any ImageView.setOnClickListener()
setOnTouchListener()
setOnLongClickListener()
setTag()
setChecked()
setAdapter()