Add proguard rules. Show unread count. Use compact font

This commit is contained in:
inorichi
2015-10-02 13:20:15 +02:00
parent ff26c38860
commit 7fe40525f2
7 changed files with 191 additions and 17 deletions
@@ -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);
}
}