From dd0a2d842a37fc63c03ef91f2d7cc86f8098bac8 Mon Sep 17 00:00:00 2001 From: inorichi Date: Thu, 21 Jan 2016 16:38:25 +0100 Subject: [PATCH] Improve recent chapters layout --- app/build.gradle | 2 +- .../ui/recent/RecentChaptersAdapter.java | 31 +++++++++------- .../layout/item_recent_chapter_section.xml | 37 +++++++++++++------ .../main/res/layout/library_tab_layout.xml | 1 - app/src/main/res/layout/tab_layout.xml | 1 - app/src/main/res/layout/toolbar.xml | 1 - build.gradle | 1 - 7 files changed, 44 insertions(+), 30 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 931d28b1f3..f096687994 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -114,7 +114,7 @@ dependencies { compile "frankiesardo:icepick:$ICEPICK_VERSION" provided "frankiesardo:icepick-processor:$ICEPICK_VERSION" compile 'com.github.dmytrodanylyk.android-process-button:library:1.0.4' - compile 'eu.davidea:flexible-adapter:4.2.0@aar' + compile 'eu.davidea:flexible-adapter:4.2.0' compile 'com.nononsenseapps:filepicker:2.5.1' compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1' compile 'com.github.pwittchen:reactivenetwork:0.1.5' diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/RecentChaptersAdapter.java b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/RecentChaptersAdapter.java index a4d3446004..3ff8d1c792 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/RecentChaptersAdapter.java +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/RecentChaptersAdapter.java @@ -1,7 +1,7 @@ package eu.kanade.tachiyomi.ui.recent; import android.support.v7.widget.RecyclerView; -import android.text.format.DateFormat; +import android.text.format.DateUtils; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -10,6 +10,8 @@ import android.widget.TextView; import java.util.Date; import java.util.List; +import butterknife.Bind; +import butterknife.ButterKnife; import eu.davidea.flexibleadapter.FlexibleAdapter; import eu.kanade.tachiyomi.R; import eu.kanade.tachiyomi.data.database.models.MangaChapter; @@ -18,8 +20,8 @@ public class RecentChaptersAdapter extends FlexibleAdapter - \ No newline at end of file + + + + + + + diff --git a/app/src/main/res/layout/library_tab_layout.xml b/app/src/main/res/layout/library_tab_layout.xml index 1fb589cdc6..cb303ff17a 100644 --- a/app/src/main/res/layout/library_tab_layout.xml +++ b/app/src/main/res/layout/library_tab_layout.xml @@ -8,7 +8,6 @@ android:theme="@style/AppTheme.Overlay.Dark" android:background="@color/colorPrimary" android:visibility="gone" - app:elevation="4dp" app:tabGravity="center" app:tabMode="scrollable" app:tabMinWidth="75dp" diff --git a/app/src/main/res/layout/tab_layout.xml b/app/src/main/res/layout/tab_layout.xml index 3bd99cc290..8737533de7 100644 --- a/app/src/main/res/layout/tab_layout.xml +++ b/app/src/main/res/layout/tab_layout.xml @@ -8,5 +8,4 @@ android:theme="@style/AppTheme.Overlay.Dark" app:tabGravity="fill" android:background="@color/colorPrimary" - app:elevation="4dp" app:tabIndicatorColor="@color/white"/> \ No newline at end of file diff --git a/app/src/main/res/layout/toolbar.xml b/app/src/main/res/layout/toolbar.xml index 925b4cdffc..c3e28cc0d2 100644 --- a/app/src/main/res/layout/toolbar.xml +++ b/app/src/main/res/layout/toolbar.xml @@ -5,6 +5,5 @@ android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="@color/colorPrimary" - app:elevation="4dp" android:theme="@style/AppTheme.ActionBar" app:layout_scrollFlags="scroll|enterAlways|snap"/> \ No newline at end of file diff --git a/build.gradle b/build.gradle index c1b713e11c..150d005340 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,6 @@ allprojects { repositories { jcenter() maven { url "https://clojars.org/repo/" } - maven { url "http://dl.bintray.com/davideas/maven" } maven { url "https://jitpack.io" } maven { url 'http://dl.bintray.com/amulyakhare/maven' } maven { url 'https://github.com/suckgamony/RapidDecoder/raw/master/repository' }