Add proguard rules. Show unread count. Use compact font
This commit is contained in:
@@ -17,22 +17,29 @@ import uk.co.ribot.easyadapter.annotations.ViewId;
|
||||
@LayoutId(R.layout.item_library)
|
||||
public class MangaLibraryHolder extends ItemViewHolder<Manga> {
|
||||
|
||||
@ViewId(R.id.thumbnailImageView)
|
||||
ImageView mImageView;
|
||||
@ViewId(R.id.thumbnailImage)
|
||||
ImageView mThumbImage;
|
||||
|
||||
@ViewId(R.id.nameTextView)
|
||||
TextView mTextView;
|
||||
@ViewId(R.id.titleText)
|
||||
TextView mTitleText;
|
||||
|
||||
@ViewId(R.id.unreadText)
|
||||
TextView mUnreadText;
|
||||
|
||||
public MangaLibraryHolder(View view) {
|
||||
super(view);
|
||||
}
|
||||
|
||||
public void onSetValues(Manga manga, PositionInfo positionInfo) {
|
||||
mTextView.setText(manga.title);
|
||||
mTitleText.setText(manga.title);
|
||||
if (manga.unread > 0) {
|
||||
mUnreadText.setVisibility(View.VISIBLE);
|
||||
mUnreadText.setText(Integer.toString(manga.unread));
|
||||
}
|
||||
Glide.with(getContext())
|
||||
.load("http://img1.wikia.nocookie.net/__cb20090524204255/starwars/images/thumb/1/1a/R2d2.jpg/400px-R2d2.jpg")
|
||||
.centerCrop()
|
||||
.into(mImageView);
|
||||
.into(mThumbImage);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user