Download button
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package eu.kanade.mangafeed.ui.adapter;
|
||||
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
|
||||
import eu.kanade.mangafeed.R;
|
||||
@@ -16,11 +17,15 @@ public class ChapterListHolder extends ItemViewHolder<Chapter> {
|
||||
@ViewId(R.id.chapter_title)
|
||||
TextView title;
|
||||
|
||||
@ViewId(R.id.chapter_download_image)
|
||||
ImageView download_icon;
|
||||
|
||||
public ChapterListHolder(View view) {
|
||||
super(view);
|
||||
}
|
||||
|
||||
public void onSetValues(Chapter chapter, PositionInfo positionInfo) {
|
||||
title.setText(chapter.name);
|
||||
download_icon.setImageResource(R.drawable.ic_file_download_black_48dp);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user