From 90056bf000c75a1171fbcc185e94a98206840162 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 27 Jul 2019 21:15:03 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/main/MainActivity.kt | 2 +- app/src/main/res/drawable/ic_rss_feed.xml | 12 ++++++++++++ app/src/main/res/menu/activity_main_bnv.xml | 6 +++--- 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 app/src/main/res/drawable/ic_rss_feed.xml diff --git a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt index 954bd4692..a76bebc8d 100644 --- a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt +++ b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt @@ -58,7 +58,7 @@ class MainActivity : BaseActivity(), BottomNavigationView.OnNavig when (item.itemId) { R.id.menu_bookshelf -> view_pager_main.currentItem = 0 R.id.menu_find_book -> view_pager_main.currentItem = 1 - R.id.menu_book_source -> view_pager_main.currentItem = 2 + R.id.menu_rss -> view_pager_main.currentItem = 2 R.id.menu_my_config -> view_pager_main.currentItem = 3 } return false diff --git a/app/src/main/res/drawable/ic_rss_feed.xml b/app/src/main/res/drawable/ic_rss_feed.xml new file mode 100644 index 000000000..ed6228cc2 --- /dev/null +++ b/app/src/main/res/drawable/ic_rss_feed.xml @@ -0,0 +1,12 @@ + + + + diff --git a/app/src/main/res/menu/activity_main_bnv.xml b/app/src/main/res/menu/activity_main_bnv.xml index 8794b7993..fb34daff3 100644 --- a/app/src/main/res/menu/activity_main_bnv.xml +++ b/app/src/main/res/menu/activity_main_bnv.xml @@ -12,9 +12,9 @@ android:icon="@drawable/ic_explore_black_24dp" android:title="@string/find"/> + android:id="@+id/menu_rss" + android:icon="@drawable/ic_rss_feed" + android:title="@string/rss" />