From 9e5622c92e043736522480945b528e2b582ed7cb Mon Sep 17 00:00:00 2001 From: inorichi Date: Fri, 25 Sep 2015 12:39:41 +0200 Subject: [PATCH] Delete boilerplate resources --- .../mangafeed/ui/adapter/DetailHolder.java | 37 -------- .../main/res/layout/activity_character.xml | 51 ---------- app/src/main/res/layout/activity_detail.xml | 46 ---------- app/src/main/res/layout/fragment_detail.xml | 26 ------ app/src/main/res/layout/item_character.xml | 92 ------------------- app/src/main/res/layout/item_detail.xml | 11 --- 6 files changed, 263 deletions(-) delete mode 100644 app/src/main/java/eu/kanade/mangafeed/ui/adapter/DetailHolder.java delete mode 100644 app/src/main/res/layout/activity_character.xml delete mode 100644 app/src/main/res/layout/activity_detail.xml delete mode 100644 app/src/main/res/layout/fragment_detail.xml delete mode 100644 app/src/main/res/layout/item_character.xml delete mode 100644 app/src/main/res/layout/item_detail.xml diff --git a/app/src/main/java/eu/kanade/mangafeed/ui/adapter/DetailHolder.java b/app/src/main/java/eu/kanade/mangafeed/ui/adapter/DetailHolder.java deleted file mode 100644 index 45a7630c3..000000000 --- a/app/src/main/java/eu/kanade/mangafeed/ui/adapter/DetailHolder.java +++ /dev/null @@ -1,37 +0,0 @@ -package eu.kanade.mangafeed.ui.adapter; - -import android.content.Intent; -import android.net.Uri; -import android.view.View; -import android.widget.TextView; - -import uk.co.ribot.easyadapter.ItemViewHolder; -import uk.co.ribot.easyadapter.PositionInfo; -import uk.co.ribot.easyadapter.annotations.LayoutId; -import uk.co.ribot.easyadapter.annotations.ViewId; - -@LayoutId(eu.kanade.mangafeed.R.layout.item_detail) -public class DetailHolder extends ItemViewHolder { - - @ViewId(eu.kanade.mangafeed.R.id.text_detail) - TextView mDetailText; - - public DetailHolder(View view) { - super(view); - } - - @Override - public void onSetValues(String item, PositionInfo positionInfo) { - mDetailText.setText(item); - } - - @Override - public void onSetListeners() { - mDetailText.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - getContext().startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(getItem()))); - } - }); - } -} \ No newline at end of file diff --git a/app/src/main/res/layout/activity_character.xml b/app/src/main/res/layout/activity_character.xml deleted file mode 100644 index f5308b852..000000000 --- a/app/src/main/res/layout/activity_character.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/activity_detail.xml b/app/src/main/res/layout/activity_detail.xml deleted file mode 100644 index 142aed362..000000000 --- a/app/src/main/res/layout/activity_detail.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_detail.xml b/app/src/main/res/layout/fragment_detail.xml deleted file mode 100644 index 3f8036eb5..000000000 --- a/app/src/main/res/layout/fragment_detail.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - diff --git a/app/src/main/res/layout/item_character.xml b/app/src/main/res/layout/item_character.xml deleted file mode 100644 index 97fc49264..000000000 --- a/app/src/main/res/layout/item_character.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/item_detail.xml b/app/src/main/res/layout/item_detail.xml deleted file mode 100644 index e803d438e..000000000 --- a/app/src/main/res/layout/item_detail.xml +++ /dev/null @@ -1,11 +0,0 @@ - -