diff --git a/.idea/misc.xml b/.idea/misc.xml
index 1b55d4c..8a37a45 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -8,6 +8,7 @@
+
diff --git a/app/src/main/java/xyz/fycz/myreader/ui/adapter/ChapterTitleAdapter.java b/app/src/main/java/xyz/fycz/myreader/ui/adapter/ChapterTitleAdapter.java
index 40cfa40..99f7b49 100644
--- a/app/src/main/java/xyz/fycz/myreader/ui/adapter/ChapterTitleAdapter.java
+++ b/app/src/main/java/xyz/fycz/myreader/ui/adapter/ChapterTitleAdapter.java
@@ -74,9 +74,9 @@ public class ChapterTitleAdapter extends ArrayAdapter {
if (convertView == null) {
viewHolder = new ViewHolder();
convertView = LayoutInflater.from(getContext()).inflate(mResourceId, null);
- viewHolder.tvTitle = (TextView) convertView.findViewById(R.id.tv_chapter_title);
- viewHolder.tvTag = (TextView) convertView.findViewById(R.id.tv_tag);
- viewHolder.ivIcon = (ImageView) convertView.findViewById(R.id.iv_icon);
+ viewHolder.tvTitle = convertView.findViewById(R.id.tv_chapter_title);
+ viewHolder.tvTag = convertView.findViewById(R.id.tv_tag);
+ viewHolder.ivIcon = convertView.findViewById(R.id.iv_icon);
convertView.setTag(viewHolder);
} else {
viewHolder = (ViewHolder) convertView.getTag();
@@ -91,7 +91,7 @@ public class ChapterTitleAdapter extends ArrayAdapter {
viewHolder.tvTitle.setText(chapter.getTitle());
//viewHolder.ivIcon.setImageResource(R.drawable.ic_cloud_download);
if (ChapterService.isChapterCached(chapter) || chapter.getEnd() > 0) {
- viewHolder.ivIcon.setVisibility(View.GONE);
+ viewHolder.ivIcon.setVisibility(View.INVISIBLE);
viewHolder.tvTitle.setTextColor(getContext().getResources().getColor(R.color.textPrimary));
} else {
viewHolder.ivIcon.setVisibility(View.VISIBLE);
diff --git a/app/src/main/java/xyz/fycz/myreader/ui/adapter/holder/CatalogHolder.java b/app/src/main/java/xyz/fycz/myreader/ui/adapter/holder/CatalogHolder.java
index 23156c0..6b8f5cf 100644
--- a/app/src/main/java/xyz/fycz/myreader/ui/adapter/holder/CatalogHolder.java
+++ b/app/src/main/java/xyz/fycz/myreader/ui/adapter/holder/CatalogHolder.java
@@ -18,6 +18,8 @@
package xyz.fycz.myreader.ui.adapter.holder;
+import android.view.View;
+import android.widget.ImageView;
import android.widget.TextView;
import androidx.core.content.ContextCompat;
@@ -34,6 +36,7 @@ import xyz.fycz.myreader.greendao.service.ChapterService;
*/
public class CatalogHolder extends ViewHolderImpl {
private TextView tvTitle;
+ private ImageView ivIcon;
@Override
protected int getItemLayoutId() {
return R.layout.item_chapter;
@@ -42,10 +45,12 @@ public class CatalogHolder extends ViewHolderImpl {
@Override
public void initView() {
tvTitle = findById(R.id.tv_chapter_title);
+ ivIcon = findById(R.id.iv_icon);
}
@Override
public void onBind(RecyclerView.ViewHolder holder, Chapter data, int pos) {
tvTitle.setText(data.getTitle());
+ ivIcon.setVisibility(View.GONE);
}
}
diff --git a/app/src/main/res/drawable-xhdpi/ic_item_category_download.png b/app/src/main/res/drawable-xhdpi/ic_item_category_download.png
deleted file mode 100644
index bb61a3c..0000000
Binary files a/app/src/main/res/drawable-xhdpi/ic_item_category_download.png and /dev/null differ
diff --git a/app/src/main/res/drawable-xhdpi/ic_item_category_normal.png b/app/src/main/res/drawable-xhdpi/ic_item_category_normal.png
deleted file mode 100644
index b4e9b49..0000000
Binary files a/app/src/main/res/drawable-xhdpi/ic_item_category_normal.png and /dev/null differ
diff --git a/app/src/main/res/drawable/selector_category_load.xml b/app/src/main/res/drawable/selector_category_load.xml
deleted file mode 100644
index ff1473f..0000000
--- a/app/src/main/res/drawable/selector_category_load.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/drawable/selector_category_unload.xml b/app/src/main/res/drawable/selector_category_unload.xml
deleted file mode 100644
index 15267c1..0000000
--- a/app/src/main/res/drawable/selector_category_unload.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/layout/item_chapter.xml b/app/src/main/res/layout/item_chapter.xml
index 454eb29..3f97495 100644
--- a/app/src/main/res/layout/item_chapter.xml
+++ b/app/src/main/res/layout/item_chapter.xml
@@ -62,7 +62,7 @@
android:contentDescription="@string/success"
android:padding="3.5dp"
android:src="@drawable/ic_cloud_download"
- android:visibility="gone"
+ android:visibility="invisible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"