From e04596c66893baeed748dac1593a1815f975c688 Mon Sep 17 00:00:00 2001 From: len Date: Wed, 30 Mar 2016 10:30:13 +0200 Subject: [PATCH] Minor UI fixes --- .../ui/manga/myanimelist/MyAnimeListFragment.kt | 9 ++++++--- .../main/res/layout/dialog_myanimelist_search_item.xml | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/myanimelist/MyAnimeListFragment.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/myanimelist/MyAnimeListFragment.kt index 55926eff3..596f83a91 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/myanimelist/MyAnimeListFragment.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/myanimelist/MyAnimeListFragment.kt @@ -46,14 +46,17 @@ class MyAnimeListFragment : BaseRxFragment() { fun setMangaSync(mangaSync: MangaSync?) { swipe_refresh.isEnabled = mangaSync != null mangaSync?.let { + myanimelist_title.setTextAppearance(R.style.TextAppearance_Regular_Body1_Secondary) + myanimelist_title.setAllCaps(false) myanimelist_title.text = it.title - val chaptersText = if (it.total_chapters > 0) + myanimelist_chapters.text = if (it.total_chapters > 0) "${it.last_chapter_read}/${it.total_chapters}" else "${it.last_chapter_read}/-" - - myanimelist_chapters.text = chaptersText myanimelist_score.text = if (it.score == 0f) "-" else decimalFormat.format(it.score) myanimelist_status.text = presenter.myAnimeList.getStatus(it.status) + } ?: run { + myanimelist_title.setTextAppearance(R.style.TextAppearance_Medium_Button) } + } fun onRefreshDone() { diff --git a/app/src/main/res/layout/dialog_myanimelist_search_item.xml b/app/src/main/res/layout/dialog_myanimelist_search_item.xml index 53d52fef6..9b8cbeee8 100644 --- a/app/src/main/res/layout/dialog_myanimelist_search_item.xml +++ b/app/src/main/res/layout/dialog_myanimelist_search_item.xml @@ -2,7 +2,8 @@ + android:orientation="vertical" + android:background="?attr/selectable_list_drawable">