From 0638761d966eca83eb88316dbb169db39ec59d3c Mon Sep 17 00:00:00 2001 From: mwang <8205347@qq.com> Date: Mon, 20 May 2019 00:06:07 +0800 Subject: [PATCH] add email notice fix bugs --- zhuike/build.gradle | 14 +- zhuike/src/A/res/values/strings.xml | 4 + zhuike/src/B/res/values/strings.xml | 4 + zhuike/src/C/res/values/strings.xml | 4 + zhuike/src/D/res/values/strings.xml | 4 + zhuike/src/main/AndroidManifest.xml | 13 +- .../android/Activity_createShudan.java | 6 +- .../com/novelbook/android/BookActivity.java | 5 +- .../android/Fragments/CatalogFragment.java | 3 +- .../android/Fragments/Fragment_bangdan.java | 3 +- .../Fragments/Fragment_jingxuan_tuijian.java | 4 +- .../android/Fragments/Fragment_paihang.java | 6 +- .../Fragments/Fragment_shudan_list.java | 2 +- .../com/novelbook/android/Main2Activity.java | 43 +++-- .../com/novelbook/android/ReadActivity.java | 1 + .../android/adapter/BookListAdapter.java | 3 +- .../filechooser/DirectoryFragment.java | 2 +- .../novelbook/android/netutils/NetUtil.java | 1 + .../android/upgrade/UpdateManager.java | 53 ++---- .../novelbook/android/utils/Constants.java | 6 +- .../novelbook/android/utils/LogcatHelper.java | 7 +- .../novelbook/android/utils/PageFactory.java | 25 ++- .../booklist_checkbox_selector.xml | 5 + .../src/main/res/drawable-v24/button_bg.xml | 25 +++ .../cycle_indicator_unselected.xml | 5 + .../drawable-v24/cyle_indicator_selected.xml | 8 + .../ic_arrow_downward_black_24dp.xml | 5 + .../res/drawable-v24/ic_book_black_24dp.xml | 5 + .../res/drawable-v24/ic_book_update_flag.png | Bin 0 -> 780 bytes .../ic_bookmark_border_black_24dp.xml | 5 + .../drawable-v24/ic_call_split_black_24dp.xml | 5 + .../ic_collections_bookmark_black_24dp.xml | 5 + .../drawable-v24/ic_dashboard_black_24dp.xml | 9 + .../ic_description_black_24dp.xml | 5 + .../drawable-v24/ic_equalizer_black_24dp.xml | 5 + .../ic_favorite_border_black_24dp.xml | 5 + .../drawable-v24/ic_feedback_black_24dp.xml | 5 + .../ic_format_line_spacing_black_24dp.xml | 5 + .../drawable-v24/ic_get_app_black_24dp.xml | 5 + .../drawable-v24/ic_history_black_24dp.xml | 5 + .../res/drawable-v24/ic_home_black_24dp.xml | 9 + .../ic_import_contacts_black_24dp.xml | 5 + .../drawable-v24/ic_launcher_background.xml | 170 ++++++++++++++++++ .../ic_library_books_black_24dp.xml | 5 + .../ic_move_to_inbox_black_24dp.xml | 9 + .../ic_notifications_black_24dp.xml | 13 ++ .../main/res/drawable-v24/ic_rank_24dp.xml | 5 + .../drawable-v24/ic_refresh_black_24dp.xml | 5 + .../res/drawable-v24/ic_search_white_24dp.xml | 5 + ...ic_sentiment_very_satisfied_black_24dp.xml | 9 + .../drawable-v24/ic_settings_black_24dp.xml | 5 + .../ic_star_border_black_24dp.xml | 5 + .../drawable-v24/ic_storage_black_24dp.xml | 5 + .../res/drawable-v24/ic_toys_black_24dp.xml | 9 + .../res/drawable-v24/item_selector_red.xml | 23 +++ .../res/drawable-v24/rb_nobtn_selector.xml | 7 + .../src/main/res/drawable-v24/sc_top_one.png | Bin 0 -> 605 bytes .../main/res/drawable-v24/sc_top_three.png | Bin 0 -> 672 bytes .../src/main/res/drawable-v24/sc_top_two.png | Bin 0 -> 677 bytes .../res/drawable-v24/selector_shelf_menu.xml | 18 ++ .../res/drawable-v24/selector_slide_view.xml | 6 + .../main/res/drawable-v24/side_nav_bar.xml | 19 ++ .../src/main/res/drawable-v24/slide_block.png | Bin 0 -> 1035 bytes .../res/drawable-v24/slide_block_click.png | Bin 0 -> 975 bytes .../drawable/ic_arrow_downward_black_24dp.xml | 5 + .../res/drawable/ic_feedback_black_24dp.xml | 5 + .../res/drawable/ic_get_app_black_24dp.xml | 5 + .../ic_import_contacts_black_24dp.xml | 5 + .../res/drawable/ic_settings_black_24dp.xml | 5 + zhuike/src/main/res/layout/activity_main3.xml | 33 ---- zhuike/src/main/res/layout/activity_main4.xml | 25 --- zhuike/src/main/res/layout/activity_main5.xml | 33 ---- zhuike/src/main/res/layout/activity_main6.xml | 54 ------ zhuike/src/main/res/layout/activity_main7.xml | 46 ----- .../src/main/res/layout/activity_toobar.xml | 121 ------------- .../fragment_shelf_botoomsheetdialog.xml | 6 +- zhuike/src/main/res/layout/maintest.xml | 26 --- .../main/res/menu/activity_main2_drawer.xml | 17 +- .../main/res/menu/activity_main4_drawer.xml | 38 ---- .../main/res/menu/activity_main_drawer.xml | 37 ---- zhuike/src/main/res/menu/main2.xml | 15 -- zhuike/src/main/res/menu/main4.xml | 10 -- zhuike/src/main/res/menu/menu_book.xml | 10 -- .../src/main/res/menu/menu_create_shudan.xml | 14 -- zhuike/src/main/res/menu/menu_main6.xml | 10 -- zhuike/src/main/res/menu/menu_main7.xml | 10 -- zhuike/src/main/res/menu/menu_scrolling.xml | 10 -- zhuike/src/main/res/xml/provider_paths.xml | 4 + zhuike/zhuike.iml | 1 + 89 files changed, 612 insertions(+), 590 deletions(-) create mode 100644 zhuike/src/A/res/values/strings.xml create mode 100644 zhuike/src/B/res/values/strings.xml create mode 100644 zhuike/src/C/res/values/strings.xml create mode 100644 zhuike/src/D/res/values/strings.xml create mode 100644 zhuike/src/main/res/drawable-v24/booklist_checkbox_selector.xml create mode 100644 zhuike/src/main/res/drawable-v24/button_bg.xml create mode 100644 zhuike/src/main/res/drawable-v24/cycle_indicator_unselected.xml create mode 100644 zhuike/src/main/res/drawable-v24/cyle_indicator_selected.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_arrow_downward_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_book_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_book_update_flag.png create mode 100644 zhuike/src/main/res/drawable-v24/ic_bookmark_border_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_call_split_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_collections_bookmark_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_dashboard_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_description_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_equalizer_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_favorite_border_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_feedback_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_format_line_spacing_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_get_app_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_history_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_home_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_import_contacts_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_launcher_background.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_library_books_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_move_to_inbox_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_notifications_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_rank_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_refresh_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_search_white_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_sentiment_very_satisfied_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_settings_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_star_border_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_storage_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/ic_toys_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable-v24/item_selector_red.xml create mode 100644 zhuike/src/main/res/drawable-v24/rb_nobtn_selector.xml create mode 100644 zhuike/src/main/res/drawable-v24/sc_top_one.png create mode 100644 zhuike/src/main/res/drawable-v24/sc_top_three.png create mode 100644 zhuike/src/main/res/drawable-v24/sc_top_two.png create mode 100644 zhuike/src/main/res/drawable-v24/selector_shelf_menu.xml create mode 100644 zhuike/src/main/res/drawable-v24/selector_slide_view.xml create mode 100644 zhuike/src/main/res/drawable-v24/side_nav_bar.xml create mode 100644 zhuike/src/main/res/drawable-v24/slide_block.png create mode 100644 zhuike/src/main/res/drawable-v24/slide_block_click.png create mode 100644 zhuike/src/main/res/drawable/ic_arrow_downward_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable/ic_feedback_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable/ic_get_app_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable/ic_import_contacts_black_24dp.xml create mode 100644 zhuike/src/main/res/drawable/ic_settings_black_24dp.xml delete mode 100644 zhuike/src/main/res/layout/activity_main3.xml delete mode 100644 zhuike/src/main/res/layout/activity_main4.xml delete mode 100644 zhuike/src/main/res/layout/activity_main5.xml delete mode 100644 zhuike/src/main/res/layout/activity_main6.xml delete mode 100644 zhuike/src/main/res/layout/activity_main7.xml delete mode 100644 zhuike/src/main/res/layout/activity_toobar.xml delete mode 100644 zhuike/src/main/res/layout/maintest.xml delete mode 100644 zhuike/src/main/res/menu/activity_main4_drawer.xml delete mode 100644 zhuike/src/main/res/menu/activity_main_drawer.xml delete mode 100644 zhuike/src/main/res/menu/main2.xml delete mode 100644 zhuike/src/main/res/menu/main4.xml delete mode 100644 zhuike/src/main/res/menu/menu_book.xml delete mode 100644 zhuike/src/main/res/menu/menu_create_shudan.xml delete mode 100644 zhuike/src/main/res/menu/menu_main6.xml delete mode 100644 zhuike/src/main/res/menu/menu_main7.xml delete mode 100644 zhuike/src/main/res/menu/menu_scrolling.xml create mode 100644 zhuike/src/main/res/xml/provider_paths.xml diff --git a/zhuike/build.gradle b/zhuike/build.gradle index 5218324..414e1a9 100644 --- a/zhuike/build.gradle +++ b/zhuike/build.gradle @@ -16,8 +16,8 @@ android { applicationId "com.novelbook.android" minSdkVersion 19 //target 19 Android 4.4 以下版本仅占比4.1% targetSdkVersion 28 - versionCode 1 - versionName "1.0" + versionCode 2 + versionName "2.0" // testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" @@ -31,7 +31,7 @@ android { multiDexEnabled true //突破65535 manifestPlaceholders = [UMENG_CHANNEL_CALUE: "umeng"] //默认为uMeng - // flavorDimensions "default" //debug时注销 + // flavorDimensions "default" //debug时注销 } buildTypes { debug { @@ -46,8 +46,8 @@ android { signingConfig signingConfigs.debug } release { - // 不显示Log - buildConfigField "boolean", "LOG_DEBUG", "false" + // 暂时显示Log 。。。。。。。。。。。。。。。上线时关闭 + buildConfigField "boolean", "LOG_DEBUG", "true" //混淆 minifyEnabled true //Zipalign优化 @@ -55,7 +55,7 @@ android { // 移除无用的resource文件 shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' - /* applicationVariants.all { variant -> + /* applicationVariants.all { variant -> variant.outputs.all { output -> def outFile = output.outputFile if (outFile != null && outFile.name.endsWith(".apk")) { @@ -69,7 +69,7 @@ android { } } //渠道 - /* productFlavors { + /*productFlavors { // googleplay {} A { applicationId "com.novelbook.android.a" diff --git a/zhuike/src/A/res/values/strings.xml b/zhuike/src/A/res/values/strings.xml new file mode 100644 index 0000000..325e7cd --- /dev/null +++ b/zhuike/src/A/res/values/strings.xml @@ -0,0 +1,4 @@ + + A小说 + + diff --git a/zhuike/src/B/res/values/strings.xml b/zhuike/src/B/res/values/strings.xml new file mode 100644 index 0000000..7eb1948 --- /dev/null +++ b/zhuike/src/B/res/values/strings.xml @@ -0,0 +1,4 @@ + + B小说 + + diff --git a/zhuike/src/C/res/values/strings.xml b/zhuike/src/C/res/values/strings.xml new file mode 100644 index 0000000..841586e --- /dev/null +++ b/zhuike/src/C/res/values/strings.xml @@ -0,0 +1,4 @@ + + C小说 + + diff --git a/zhuike/src/D/res/values/strings.xml b/zhuike/src/D/res/values/strings.xml new file mode 100644 index 0000000..467090f --- /dev/null +++ b/zhuike/src/D/res/values/strings.xml @@ -0,0 +1,4 @@ + + D小说 + + diff --git a/zhuike/src/main/AndroidManifest.xml b/zhuike/src/main/AndroidManifest.xml index d6c3647..4e43144 100644 --- a/zhuike/src/main/AndroidManifest.xml +++ b/zhuike/src/main/AndroidManifest.xml @@ -9,7 +9,7 @@ - + - + + + @@ -91,4 +99,5 @@ --> + \ No newline at end of file diff --git a/zhuike/src/main/java/com/novelbook/android/Activity_createShudan.java b/zhuike/src/main/java/com/novelbook/android/Activity_createShudan.java index 5e80716..ceed343 100644 --- a/zhuike/src/main/java/com/novelbook/android/Activity_createShudan.java +++ b/zhuike/src/main/java/com/novelbook/android/Activity_createShudan.java @@ -79,7 +79,7 @@ public class Activity_createShudan extends Activity_base { protected void setupToolbar(){ super.setupToolbar(); - toolbar.inflateMenu(R.menu.menu_create_shudan);//设置右上角的填充菜单 + /*toolbar.inflateMenu(R.menu.menu_create_shudan);//设置右上角的填充菜单 toolbar.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener() { @Override public boolean onMenuItemClick(MenuItem item) { @@ -94,7 +94,7 @@ public class Activity_createShudan extends Activity_base { } return true; } - }); + });*/ } @Override @@ -130,7 +130,7 @@ public class Activity_createShudan extends Activity_base { @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. - getMenuInflater().inflate(R.menu.menu_create_shudan, menu); + // getMenuInflater().inflate(R.menu.menu_create_shudan, menu); return true; } diff --git a/zhuike/src/main/java/com/novelbook/android/BookActivity.java b/zhuike/src/main/java/com/novelbook/android/BookActivity.java index d5000c9..61fc06b 100644 --- a/zhuike/src/main/java/com/novelbook/android/BookActivity.java +++ b/zhuike/src/main/java/com/novelbook/android/BookActivity.java @@ -165,7 +165,7 @@ public class BookActivity extends Activity_base { super.setupToolbar(); // toolbar.setTitleMarginBottom(1); // toolbar.setTitleTextAppearance(this,R.style.TitleText); - toolbar.inflateMenu(R.menu.menu_book);//设置右上角的填充菜单 + /* toolbar.inflateMenu(R.menu.menu_book);//设置右上角的填充菜单 toolbar.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener() { @Override public boolean onMenuItemClick(MenuItem item) { @@ -176,7 +176,7 @@ public class BookActivity extends Activity_base { } return true; } - }); + });*/ } public final static String EXTRA_BOOK ="book"; @@ -202,6 +202,7 @@ public class BookActivity extends Activity_base { NetUtil.cancelRequest(mNovel.getNovelId()); getBookInfo(); + } /** diff --git a/zhuike/src/main/java/com/novelbook/android/Fragments/CatalogFragment.java b/zhuike/src/main/java/com/novelbook/android/Fragments/CatalogFragment.java index 1dbc82b..ebe4510 100644 --- a/zhuike/src/main/java/com/novelbook/android/Fragments/CatalogFragment.java +++ b/zhuike/src/main/java/com/novelbook/android/Fragments/CatalogFragment.java @@ -177,8 +177,9 @@ public class CatalogFragment extends BasicFragment implements MarkActivity.Sortc } } + int maxSlept =NetUtil.isNetworkConnected()?50 :200; int slepttime = 0; - while (NetUtil.isNetworkConnected() &&( slepttime < 200 && ( pageFactory.isReadingCatalogs() || pageFactory.getChapters().size() == 0))) { + while ( slepttime < maxSlept && ( pageFactory.isReadingCatalogs() || pageFactory.getChapters().size() == 0)) { try { Log.d(TAG, String .format("prepare book: to open book cate to sleep %s" , 50)); sleep(50); diff --git a/zhuike/src/main/java/com/novelbook/android/Fragments/Fragment_bangdan.java b/zhuike/src/main/java/com/novelbook/android/Fragments/Fragment_bangdan.java index 106997a..684fcaa 100644 --- a/zhuike/src/main/java/com/novelbook/android/Fragments/Fragment_bangdan.java +++ b/zhuike/src/main/java/com/novelbook/android/Fragments/Fragment_bangdan.java @@ -28,6 +28,7 @@ import butterknife.BindView; public class Fragment_bangdan extends BasicFragment { + public static final String TAG=Fragment_bangdan.class.getSimpleName(); // TODO: Rename parameter arguments, choose names that match // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER private static final String ARG_PARAM1 = "param1"; @@ -159,7 +160,7 @@ public class Fragment_bangdan extends BasicFragment { @Override public void setFTag() { - TAG ="com.novelbook.android.Fragments.Fragment_bangdan"; + } diff --git a/zhuike/src/main/java/com/novelbook/android/Fragments/Fragment_jingxuan_tuijian.java b/zhuike/src/main/java/com/novelbook/android/Fragments/Fragment_jingxuan_tuijian.java index af6a3b5..7279b6a 100644 --- a/zhuike/src/main/java/com/novelbook/android/Fragments/Fragment_jingxuan_tuijian.java +++ b/zhuike/src/main/java/com/novelbook/android/Fragments/Fragment_jingxuan_tuijian.java @@ -18,7 +18,7 @@ import butterknife.ButterKnife; import butterknife.OnClick; public class Fragment_jingxuan_tuijian extends BasicFragment { - public static String TAG=Fragment_jingxuan.class.getSimpleName(); + final public static String TAG =Fragment_jingxuan.class.getSimpleName(); @BindView(R.id.imageGallary1) ImageView imageView1; @BindView(R.id.imageGallary2) @@ -130,7 +130,7 @@ public class Fragment_jingxuan_tuijian extends BasicFragment { @Override public void setFTag() { - TAG="com.novelbook.android.Fragments.Fragment_jingxuan_tuijian"; + } diff --git a/zhuike/src/main/java/com/novelbook/android/Fragments/Fragment_paihang.java b/zhuike/src/main/java/com/novelbook/android/Fragments/Fragment_paihang.java index b444698..fe3fd1b 100644 --- a/zhuike/src/main/java/com/novelbook/android/Fragments/Fragment_paihang.java +++ b/zhuike/src/main/java/com/novelbook/android/Fragments/Fragment_paihang.java @@ -172,8 +172,7 @@ final String TAG = Fragment_paihang.class.getSimpleName(); @Override public void onLinearOutClick(View view, int position, int llId) { - Toast.makeText(activity, "book " + position + " clicked", - Toast.LENGTH_SHORT).show(); + } }); mAdapter.setShowTop(true); @@ -328,8 +327,7 @@ final String TAG = Fragment_paihang.class.getSimpleName(); - Toast.makeText(activity, selectedKey, - Toast.LENGTH_SHORT).show(); + // Toast.makeText(activity, selectedKey, Toast.LENGTH_SHORT).show(); tvHint.setText(selectedKey); Log.d(TAG, String.format("tabChanged: to load data %s,pageno %s, tmp %s" , selectedKey,pageNo ,tmp)); diff --git a/zhuike/src/main/java/com/novelbook/android/Fragments/Fragment_shudan_list.java b/zhuike/src/main/java/com/novelbook/android/Fragments/Fragment_shudan_list.java index b398a17..8f01809 100644 --- a/zhuike/src/main/java/com/novelbook/android/Fragments/Fragment_shudan_list.java +++ b/zhuike/src/main/java/com/novelbook/android/Fragments/Fragment_shudan_list.java @@ -20,7 +20,7 @@ import java.util.List; import butterknife.BindView; public class Fragment_shudan_list extends BasicFragment { - + public static String TAG=Fragment_shudan_list.class.getSimpleName(); private char cnt; ShudanAdapter mAdapter; diff --git a/zhuike/src/main/java/com/novelbook/android/Main2Activity.java b/zhuike/src/main/java/com/novelbook/android/Main2Activity.java index 8cf24eb..40a1a7f 100644 --- a/zhuike/src/main/java/com/novelbook/android/Main2Activity.java +++ b/zhuike/src/main/java/com/novelbook/android/Main2Activity.java @@ -1,6 +1,7 @@ package com.novelbook.android; import android.content.Intent; +import android.net.Uri; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.design.widget.BottomNavigationView; @@ -84,7 +85,7 @@ public class Main2Activity extends Activity_base // ButterKnife.bind(this); initialSexOption(); - // checkUpdate(true); + checkUpdate(true); // getSearchTabTtitle(); } @@ -171,17 +172,16 @@ public class Main2Activity extends Activity_base }else */ - if(menuItemId == R.id.menuMore) { + if(menuItemId == R.id.menuMore) { showShelfMoreSheet(); } else if(menuItemId == R.id.menuFinshi) { udateShelfZhengli(); - } if(menuItemId==R.id.menuSearch){ + } else if(menuItemId==R.id.menuSearch){ Intent intent = new Intent(Main2Activity.this,Activity_Search.class); startActivity(intent); - } - if(menuItemId==R.id.menuHistory){ + }else if(menuItemId==R.id.menuHistory){ Intent intent = new Intent(Main2Activity.this,Activity_paihangbang.class); intent.putExtra(Activity_paihangbang.EXTR_HISTORY,"yes"); @@ -276,9 +276,7 @@ public class Main2Activity extends Activity_base // Handle navigation view item clicks here. int id = item.getItemId(); - if (id == R.id.nav_camera) { - // Handle the camera action - } else if (id == R.id.nav_gallery) { + if (id == R.id.nav_history) { Intent intent = new Intent(Main2Activity.this,Activity_paihangbang.class); intent.putExtra(Activity_paihangbang.EXTR_HISTORY,"yes"); intent.putExtra(Activity_paihangbang.EXTR_TITLE,"我曾经看过的书"); @@ -287,13 +285,15 @@ public class Main2Activity extends Activity_base startDownloadService(); Intent intent = new Intent(Main2Activity.this,Activity_cache.class); startActivity(intent); - } else if (id == R.id.nav_manage) { - - } else if (id == R.id.nav_share) { - - } else if (id == R.id.nav_send) { - - } + } else if (id == R.id.nav_advice) { + Uri uri = Uri.parse("mailto:"+ Constants.email); + String[] email = {Constants.email}; + Intent intent = new Intent(Intent.ACTION_SENDTO, uri); + intent.putExtra(Intent.EXTRA_CC, email); // 抄送人 + intent.putExtra(Intent.EXTRA_SUBJECT, "意见建议"); // 主题 + intent.putExtra(Intent.EXTRA_TEXT, "请输入内容"); // 正文 + startActivity(Intent.createChooser(intent, "请选择邮件应用")); + } DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCompat.START); @@ -472,6 +472,19 @@ private int bottomSelectedIndex; // setTitle("title on resume"); // checkUpdate(true); // getHostPolicy(); + + Fragment current = getSupportFragmentManager().findFragmentById(R.id.realtabcontent); + if (current != null && current instanceof Fragment_Shelf){ + // Log.d(TAG, "onResume: current is shelf, botoomNavigation selection is 0? " +(botoomNavigation.getSelectedItemId() == R.id.navigation_home)); + if(botoomNavigation.getSelectedItemId()!= R.id.navigation_home){ + botoomNavigation.setSelectedItemId( R.id.navigation_home); + + // Log.d(TAG, "onResume: set botoomNav selection to 0"); + } + + } + + } @Override diff --git a/zhuike/src/main/java/com/novelbook/android/ReadActivity.java b/zhuike/src/main/java/com/novelbook/android/ReadActivity.java index 60cb49d..be3443e 100644 --- a/zhuike/src/main/java/com/novelbook/android/ReadActivity.java +++ b/zhuike/src/main/java/com/novelbook/android/ReadActivity.java @@ -419,6 +419,7 @@ public class ReadActivity extends Activity_base implements SpeechSynthesizerLis if (isShow) { hideReadSetting(); return false; + } if (isShow || isSpeaking){ // return false; diff --git a/zhuike/src/main/java/com/novelbook/android/adapter/BookListAdapter.java b/zhuike/src/main/java/com/novelbook/android/adapter/BookListAdapter.java index 288817d..90395f1 100644 --- a/zhuike/src/main/java/com/novelbook/android/adapter/BookListAdapter.java +++ b/zhuike/src/main/java/com/novelbook/android/adapter/BookListAdapter.java @@ -215,7 +215,8 @@ public class BookListAdapter extends RecyclerView.Adapter< RecyclerView.ViewHol if (holder.tvDesc != null) holder.tvDesc.setText(mDatas.get(position).getDesc()); if (holder.tvLastRead != null) holder.tvLastRead.setText(CommonUtil.getDateString( mDatas.get(position).getLastVisit() )); - if (holder.tvProgress != null) holder.tvProgress.setText( String.format("上次看到第 %s 章,共%s章",mDatas.get(position).getLastReadChapt(),mDatas.get(position).getChaptCnt()) ); + // if (holder.tvProgress != null) holder.tvProgress.setText( String.format("上次看到第 %s 章,共%s章",mDatas.get(position).getLastReadChapt(),mDatas.get(position).getChaptCnt()) ); + if (holder.tvProgress != null) holder.tvProgress.setText( String.format("上次看到第 %s 章",mDatas.get(position).getLastReadChapt(),mDatas.get(position).getChaptCnt()) ); if (holder.tvReadtime != null) holder.tvReadtime.setText( "总计阅读了 "+CommonUtil.getTimeCnt4Read( mDatas.get(position).getReadtime() ,true) ); diff --git a/zhuike/src/main/java/com/novelbook/android/filechooser/DirectoryFragment.java b/zhuike/src/main/java/com/novelbook/android/filechooser/DirectoryFragment.java index f336f36..c1c3ea6 100644 --- a/zhuike/src/main/java/com/novelbook/android/filechooser/DirectoryFragment.java +++ b/zhuike/src/main/java/com/novelbook/android/filechooser/DirectoryFragment.java @@ -46,7 +46,7 @@ import java.util.HashMap; import java.util.List; public class DirectoryFragment extends Fragment implements View.OnClickListener { - + public static final String TAG =DirectoryFragment.class.getSimpleName(); private View fragmentView; private boolean receiverRegistered = false; private File currentDir; diff --git a/zhuike/src/main/java/com/novelbook/android/netutils/NetUtil.java b/zhuike/src/main/java/com/novelbook/android/netutils/NetUtil.java index a98f814..16b3460 100644 --- a/zhuike/src/main/java/com/novelbook/android/netutils/NetUtil.java +++ b/zhuike/src/main/java/com/novelbook/android/netutils/NetUtil.java @@ -317,6 +317,7 @@ public class NetUtil { Constants.LAST_G = new Date().getTime(); Constants.announcement =jsonObject.getString("declare"); + Constants.email =jsonObject.getString("email"); // config.setRootUrl( jsonObject.getString("masterDomains")); isRequestHosts =false; } catch (Exception e) { diff --git a/zhuike/src/main/java/com/novelbook/android/upgrade/UpdateManager.java b/zhuike/src/main/java/com/novelbook/android/upgrade/UpdateManager.java index 25f07ac..f039ebe 100644 --- a/zhuike/src/main/java/com/novelbook/android/upgrade/UpdateManager.java +++ b/zhuike/src/main/java/com/novelbook/android/upgrade/UpdateManager.java @@ -21,15 +21,19 @@ import android.content.DialogInterface.OnClickListener; import android.content.Intent; import android.content.pm.PackageManager.NameNotFoundException; import android.net.Uri; +import android.os.Build; import android.os.Environment; import android.os.Handler; import android.os.Message; +import android.support.v4.content.FileProvider; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.widget.ProgressBar; import android.widget.Toast; +import com.novelbook.android.BuildConfig; +import com.novelbook.android.MyApp; import com.novelbook.android.R; import com.novelbook.android.ReadActivity; import com.novelbook.android.db.Novel; @@ -295,46 +299,12 @@ public class UpdateManager { */ private void showNoticeDialog() { - - - /*final AlertDialog.Builder normalDialog = - new AlertDialog.Builder(mContext); - - normalDialog.setTitle("退出阅读"); - normalDialog.setMessage("确定退出阅读吗?"); - normalDialog.setPositiveButton("继续阅读", - new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int which) { - - } - }); - normalDialog.setNegativeButton("退出阅读", - new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int which) { - - } - }); - - normalDialog.setOnDismissListener(new DialogInterface.OnDismissListener() { - @Override - public void onDismiss(DialogInterface dialog) { - - } - }); - - // 显示 - normalDialog.show(); -*/ - - // 閺嬪嫰锟界�纭呯樈濡楋拷 Builder builder = new Builder(mContext); builder.setTitle(R.string.soft_update_title); String upgradeDetails=mHashMap.get("details"); - builder.setMessage( mContext.getPackageName() + " "+ mContext.getString(R.string.soft_update_info) +upgradeDetails ); + builder.setMessage( mContext.getPackageName() + " "+getVersionCode(mContext) +" " +mContext.getString(R.string.soft_update_info) +upgradeDetails ); builder.setPositiveButton(R.string.soft_update_updatebtn, new OnClickListener() { @Override @@ -480,7 +450,18 @@ public class UpdateManager { } // 闁俺绻僆ntent鐎瑰顥朅PK閺傚洣娆� Intent i = new Intent(Intent.ACTION_VIEW); - i.setDataAndType(Uri.parse("file://" + apkfile.toString()), "application/vnd.android.package-archive"); + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) { + i.setDataAndType(Uri.parse("file://" + apkfile.toString()), "application/vnd.android.package-archive"); + i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + } else { + // 声明需要的临时权限 + // 第二个参数,即第一步中配置的authorities + Uri contentUri = FileProvider.getUriForFile(MyApp.applicationContext, BuildConfig.APPLICATION_ID + ".provider", apkfile); + i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); + i.setDataAndType(contentUri, "application/vnd.android.package-archive"); + } + + mContext.startActivity(i); } } diff --git a/zhuike/src/main/java/com/novelbook/android/utils/Constants.java b/zhuike/src/main/java/com/novelbook/android/utils/Constants.java index 1927c42..d95e06d 100644 --- a/zhuike/src/main/java/com/novelbook/android/utils/Constants.java +++ b/zhuike/src/main/java/com/novelbook/android/utils/Constants.java @@ -22,10 +22,12 @@ public class Constants { public static List lstNt=null; //public static List lstProgress=null; public static String[] lstProgress={"连载中","已完本","新书"}; - public static int retryCnt =3; - public static int muluRetryCnt =3; + public static int retryCnt =5; + public static int muluRetryCnt =5; // public static List lstProgress=null; public static boolean showDialogOnUi =true; public static boolean showDialogOnUiPage =false; public static String announcement ="免责声明:阅读内容均来自互联网,本软件仅提供转码服务"; + public static String email =""; + } diff --git a/zhuike/src/main/java/com/novelbook/android/utils/LogcatHelper.java b/zhuike/src/main/java/com/novelbook/android/utils/LogcatHelper.java index 0c5b503..fe04c1d 100644 --- a/zhuike/src/main/java/com/novelbook/android/utils/LogcatHelper.java +++ b/zhuike/src/main/java/com/novelbook/android/utils/LogcatHelper.java @@ -83,7 +83,7 @@ public class LogcatHelper { mPID = pid; try { out = new FileOutputStream(new File(dir, "Novel-" - + CommonUtil.getFileName() + ".log")); + + CommonUtil.getFileName() + ".log"),true); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); @@ -123,9 +123,8 @@ public class LogcatHelper { if (line.length() == 0) { continue; } - if (out != null && line.contains(mPID)) { - out.write((CommonUtil.getDateEN() + " " + line + "\n") - .getBytes()); + if (out != null/* && line.contains(mPID)*/) { + out.write((CommonUtil.getDateEN() + " " + line + "\n") .getBytes()); } } diff --git a/zhuike/src/main/java/com/novelbook/android/utils/PageFactory.java b/zhuike/src/main/java/com/novelbook/android/utils/PageFactory.java index 15385be..623d947 100644 --- a/zhuike/src/main/java/com/novelbook/android/utils/PageFactory.java +++ b/zhuike/src/main/java/com/novelbook/android/utils/PageFactory.java @@ -271,6 +271,7 @@ public class PageFactory implements ChangeSource{ fileRetryCnt.clear();//只保留一个章节数据 fileRetryCnt.put(chaptId, 1); loadingTxt=""; + mBookUtil.fileRetryCnt.clear(); } Log.d(TAG, String.format("prepare book loadCurrentChapt %s, rertying count %s ",chaptId, fileRetryCnt.get(chaptId))); @@ -505,6 +506,12 @@ public static boolean busy(){ } public void refreshChapter() { + fileRetryCnt.clear(); + mBookUtil.fileRetryCnt.clear(); + if( chaptMap.containsKey(getCurrentChapter())){ + chaptMap.remove(getCurrentChapter()); + } + mBookUtil.refreshChapter(); } @@ -891,15 +898,19 @@ private void hideSysUI(){ mBookPageWidget.postInvalidate(); if(currentPage!=null && currentPage.getPageNo()==1){ + String sn = getNovel().getDomainName(); + if(TextUtils.isEmpty(sn)){ + if(getSite()!=null &&getSite().getName() !=null ){ + sn =getSite().getName(); + } + } + String source =String.format("本章节内容来自网络"); - if(getSite()!=null){ + if(!TextUtils.isEmpty(sn)){ source =String.format("本章节内容来自第三方网站:%s",getSite().getName()); } int anny= (int) CommonUtil.convertDpToPixel(mContext,40); c.drawText(source, marginWidth, statusMarginBottom + mBatterryFontSize+anny, mBatterryPaint); - - - anny= (int) CommonUtil.convertDpToPixel(mContext,60); c.drawText( Constants.announcement, marginWidth, statusMarginBottom + mBatterryFontSize+anny, mBatterryPaint); @@ -966,7 +977,7 @@ private void hideSysUI(){ if (currentPage.getEnd() >= mBookUtil.getChapterLen()) { Log.d(TAG,"已经是本章最后一页了"); - if(mBookUtil.getChapters().size()==0){ + if(mBookUtil.getChapters().size()==0 &&NetUtil.isNetworkConnected()){ mStatus = Status.OPENING; drawStatus(); @@ -1235,7 +1246,7 @@ if(book==null){ float height = 0; String line = ""; if(mBookUtil.getPosition(chaptId)==0) { - lines.add("\n");lines.add("\n"); + lines.add("\n");//lines.add("\n"); } calculateLineCount(); while (mBookUtil.next(true,chaptId) != -1){ @@ -1507,7 +1518,7 @@ if(book==null){ currentChaptPages = loadCurrentChapt(currentChapter ) ; currentPage = getPageForBegin(0); currentPage(true); - + hideSysUI(); } public void retryChapt(int chapNum){ fileRetryCnt.clear(); diff --git a/zhuike/src/main/res/drawable-v24/booklist_checkbox_selector.xml b/zhuike/src/main/res/drawable-v24/booklist_checkbox_selector.xml new file mode 100644 index 0000000..8ab4e6c --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/booklist_checkbox_selector.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/zhuike/src/main/res/drawable-v24/button_bg.xml b/zhuike/src/main/res/drawable-v24/button_bg.xml new file mode 100644 index 0000000..3fbbc06 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/button_bg.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/zhuike/src/main/res/drawable-v24/cycle_indicator_unselected.xml b/zhuike/src/main/res/drawable-v24/cycle_indicator_unselected.xml new file mode 100644 index 0000000..485b901 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/cycle_indicator_unselected.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/zhuike/src/main/res/drawable-v24/cyle_indicator_selected.xml b/zhuike/src/main/res/drawable-v24/cyle_indicator_selected.xml new file mode 100644 index 0000000..2586398 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/cyle_indicator_selected.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_arrow_downward_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_arrow_downward_black_24dp.xml new file mode 100644 index 0000000..4c58652 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_arrow_downward_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_book_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_book_black_24dp.xml new file mode 100644 index 0000000..2253d34 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_book_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_book_update_flag.png b/zhuike/src/main/res/drawable-v24/ic_book_update_flag.png new file mode 100644 index 0000000000000000000000000000000000000000..7797896862bb5667c360051f19c9178ae863c063 GIT binary patch literal 780 zcmeAS@N?(olHy`uVBq!ia0vp^J|N7&3?x5zE|dgP`2jv5u0Z<#BEA1J<^Ru+`#(zo zL;}HF&Hu}6{(pJ#|M%Dbm*)OoX!!rZuK#Bz{{Qpq|M_YEuPpk%J^BC1&i{LI|8ETW z|L*4h8!P{Rdi4Lvk^fs_{=d5P|IX(B$J_otKmC7S(f<$k{vT`nzsB?bkN5u%RWcvb zQ3hJcS`y?J%)ou%jX}Wm*?SlmnA|;G977@w-@S6XZ?ORnTf+N;=NL7fhH$a6W!(QS zdA;#miuRT)&)SW%JX}RO{r|mX`SDTs`?~o359ME5XG8^D{-&_P^~?M$`KDVFg*1ED z9^=Z)DUGmP%XfW`t9!{TGm$kvcby9L&i$QsX%3sq^32EY?p-nZRS=by^Z%R3v6_o& zi^NtJthL+qdS%(x%w)@#(ortrXP+EZ-Fs`*ms>5rw_dxE^Dg+R+UaQtz4hXvKWc*` zy~2%LBKP_!{@fDM(6;K$8rxUDeKz~QPBYOGHMne-ntidxt=4Rp&GFx+sa7$j_t!_4 znl*FY%(p$edRx@0YldHc`5a%cZ|1YQ&2A>oPpndX+03>+Q~2q>{>vK9cQQUKGP|+< z`mLmuz3n%jrwiwAcpjDG_Vufy)}7YLK@0h3fCQ$h{hJ`lYTA|+p5rw0c-*yRUkg?{ zACWRWrCJ&`iErcaxT{KhA+F)CHYl)X2X78dNPXj&yW#oo+$CEs=a|l!VtRDi>vX5< zSqIB9T~}U+G*o{Zd+fKt>cqGWwNW + + diff --git a/zhuike/src/main/res/drawable-v24/ic_call_split_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_call_split_black_24dp.xml new file mode 100644 index 0000000..052486c --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_call_split_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_collections_bookmark_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_collections_bookmark_black_24dp.xml new file mode 100644 index 0000000..49e6c06 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_collections_bookmark_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_dashboard_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_dashboard_black_24dp.xml new file mode 100644 index 0000000..46fc8de --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_dashboard_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_description_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_description_black_24dp.xml new file mode 100644 index 0000000..302bb4a --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_description_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_equalizer_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_equalizer_black_24dp.xml new file mode 100644 index 0000000..d3354d9 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_equalizer_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_favorite_border_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_favorite_border_black_24dp.xml new file mode 100644 index 0000000..63fb576 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_favorite_border_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_feedback_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_feedback_black_24dp.xml new file mode 100644 index 0000000..c97ae1c --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_feedback_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_format_line_spacing_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_format_line_spacing_black_24dp.xml new file mode 100644 index 0000000..fd9ff29 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_format_line_spacing_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_get_app_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_get_app_black_24dp.xml new file mode 100644 index 0000000..b8e8361 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_get_app_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_history_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_history_black_24dp.xml new file mode 100644 index 0000000..de25eb4 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_history_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_home_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_home_black_24dp.xml new file mode 100644 index 0000000..f8bb0b5 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_home_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_import_contacts_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_import_contacts_black_24dp.xml new file mode 100644 index 0000000..1587b50 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_import_contacts_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_launcher_background.xml b/zhuike/src/main/res/drawable-v24/ic_launcher_background.xml new file mode 100644 index 0000000..0d025f9 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_library_books_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_library_books_black_24dp.xml new file mode 100644 index 0000000..6fdb7fa --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_library_books_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_move_to_inbox_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_move_to_inbox_black_24dp.xml new file mode 100644 index 0000000..349f48f --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_move_to_inbox_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_notifications_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_notifications_black_24dp.xml new file mode 100644 index 0000000..6efc167 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_notifications_black_24dp.xml @@ -0,0 +1,13 @@ + + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_rank_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_rank_24dp.xml new file mode 100644 index 0000000..13cfc8f --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_rank_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_refresh_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_refresh_black_24dp.xml new file mode 100644 index 0000000..cc2d1e0 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_refresh_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_search_white_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_search_white_24dp.xml new file mode 100644 index 0000000..be5ad99 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_search_white_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_sentiment_very_satisfied_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_sentiment_very_satisfied_black_24dp.xml new file mode 100644 index 0000000..3ee1f32 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_sentiment_very_satisfied_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_settings_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_settings_black_24dp.xml new file mode 100644 index 0000000..79af3ab --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_settings_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_star_border_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_star_border_black_24dp.xml new file mode 100644 index 0000000..3fc251d --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_star_border_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_storage_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_storage_black_24dp.xml new file mode 100644 index 0000000..ab0ccd5 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_storage_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/ic_toys_black_24dp.xml b/zhuike/src/main/res/drawable-v24/ic_toys_black_24dp.xml new file mode 100644 index 0000000..d56ddfc --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/ic_toys_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/zhuike/src/main/res/drawable-v24/item_selector_red.xml b/zhuike/src/main/res/drawable-v24/item_selector_red.xml new file mode 100644 index 0000000..5f38f04 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/item_selector_red.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/zhuike/src/main/res/drawable-v24/rb_nobtn_selector.xml b/zhuike/src/main/res/drawable-v24/rb_nobtn_selector.xml new file mode 100644 index 0000000..74c867f --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/rb_nobtn_selector.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/zhuike/src/main/res/drawable-v24/sc_top_one.png b/zhuike/src/main/res/drawable-v24/sc_top_one.png new file mode 100644 index 0000000000000000000000000000000000000000..bd43b69f879e81563a58b0400902d4984adc1ee8 GIT binary patch literal 605 zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY3?!3`olAjKPJmB{E0F%MONDIo|NsAw`|bYy z{`&jfm7h=de802!^U1V7pYDIX-2UzQ)W6?f{dln9(~*#0FHd|qS6-wy#Rq7gNJ)@i zFhiNU1=p7&domJsJ~}<6Q%7EG<1%Z*GkOdRj6I$%jv*0;-(EdEt;s-u<$}`0?VkdK z1z6|K{Qv*BVpDtTHqW+sbGIfZvYxnPOfX_-e1dKNZPgg&ebxsLQ05K&OCIA2c literal 0 HcmV?d00001 diff --git a/zhuike/src/main/res/drawable-v24/sc_top_three.png b/zhuike/src/main/res/drawable-v24/sc_top_three.png new file mode 100644 index 0000000000000000000000000000000000000000..0d1401d512f3e2bee7261c1f45d5a05f3d8ed687 GIT binary patch literal 672 zcmV;R0$=@!P)WST|7EcMWwHNdu>WST|7NrQWw8HcvHxbU|75WLX0ZQdvHxbV|6{KIW3B&auK#7Q z|NsC0+U)_WJ*y%>RA7|Iz0EzTE$m$N!O8xC{UQ z01|XkPE!E)cDrXsI10qB;>(nYUo0OMk@Y|$0005kNklLXZa`Xe9;tQqaZ- z6(=G}v(|MU4N#NPEp_48eLa*Bry0>SSRATL2WT-ss>4YfpsfySZm(BmlhZY^)269V znO@Ix?tjO<NTEB#%{=LEqVZ6ozhlQA?QGh6 zcc>-pJ>VT&pem-Wbr|H&NRLrisXP5CKdh6@zI2DvAI477y|w1f=gLk3#RCqnFqK)%tz z*gA_qTZlkj01;>vK?L%Tkbt}yAOWrSmd1>R^p^nL!Fb2h#W5t}@Y`#rtC|c1SRWjY{h;@dZ_)ez zlX4wp4Lv7cd3kR0=|lg$(`LBLx#!QoAphd}l9+&FtgbNuXIN!tD4b7kx|Y!7WE;}4 zQ1JRCpXV8m7i9)mPT4H!wV>hGP01rW_j>LX zytQ&cn$`I)$%(s{dNB5W-!Ugw{CHi)@TumGOLN2cI@Ybg>^SSqUs| z`@|oOEeo$mt;qiL?Bl~Lr)%gvwm$N^d4Nr8o>qL^l&@Vr0#~bM%+*@X zs@iC)@?zU$`%gEx7A@;F4(`8n=e9%1@;Ui_-+u+l&sk7(!Iqivj6m<26=~0vw%^;{ zuHiKAn(dv1zgGRa|AKGp+^iEZ3V*YA+gUk$H(I@JvjpD-kJM@LeBv)ke(IeM{p~SZ z(JMY!=+uJy?E8 hr;Fdt?&tFw#&cy%$)eX*rU6p{gQu&X%Q~loCIHvHNHhQd literal 0 HcmV?d00001 diff --git a/zhuike/src/main/res/drawable-v24/selector_shelf_menu.xml b/zhuike/src/main/res/drawable-v24/selector_shelf_menu.xml new file mode 100644 index 0000000..64c8364 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/selector_shelf_menu.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/zhuike/src/main/res/drawable-v24/selector_slide_view.xml b/zhuike/src/main/res/drawable-v24/selector_slide_view.xml new file mode 100644 index 0000000..c30754d --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/selector_slide_view.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/zhuike/src/main/res/drawable-v24/side_nav_bar.xml b/zhuike/src/main/res/drawable-v24/side_nav_bar.xml new file mode 100644 index 0000000..9ad7c08 --- /dev/null +++ b/zhuike/src/main/res/drawable-v24/side_nav_bar.xml @@ -0,0 +1,19 @@ + + + + + \ No newline at end of file diff --git a/zhuike/src/main/res/drawable-v24/slide_block.png b/zhuike/src/main/res/drawable-v24/slide_block.png new file mode 100644 index 0000000000000000000000000000000000000000..f46a2b92259065f73d43b3703aa688d499b93b6d GIT binary patch literal 1035 zcmeAS@N?(olHy`uVBq!ia0vp^7C=0SgBeJw-~YJ;NG%HR32_C|t;LyiLyM+QTrz7) zb3s~5QO3MU-Lw1JJIZppstVdlv*%Cgo6=U-Q&T*%r)5%ebzgnigvN^LUCjojMVvra zs+0uz1v7kkcXv-ITi8;IKaVfYtCZ$_e&bM2ik^~)KmW6nTV{B;Y--aw@4)WKz`*py z)5S3)goX3lp0BR_bZePN z(Y<5(N8W6oEt~uzBYe)ni<#SgFLTN9zt(o{0pBv|*PgqBsxu>{CS-)Yc70R3PMn8j z!_i;CPxh`eS>X`9_fp(x22Qu`Pxsmi`~_H2i+{M~Ea$dAkh}PAjH6}2?)z*fVy1q( zCgVKwi9{-=!m($6+l)kZe7AWo?Y?RE+PS)nf`x{MlyuU~lZ00|SP9K)y?*&4*W$?% zf~&7ohi~NWX#PIkHer`|zTJ^V#px~+5C43+=Ar1bf01AKk7(&j|L$WBe(&VrvTy$O zwuSLU>lKbGz2^LvDRZwQvFGeH&n*jl!ZJ#hlnTjeJia?I>7u3X#bb-=xfO5O>g6#^ zOy4fUuvziECd+q*+Bj>ir1ow$jf8@Wp@Ok`dLc(x#Z5&6A1_*~bSs8MHEW|-{q!HI zt_sJZISqA>9S=BUsCHE6tLhR<&9-?{CWzQtuFOhu>DpP-%O2#j$-`;d1SOS?Ei4&^ zKPCy-oK;+Zl)d8>yTU}LZqI#_C#Wx}2&i47bd){v?<Pfb>kB!St*jTNwdm+k{+k?z>}S}e)=zTwt~y}F>hkLDgZ74* zMHjD}@GLmUSUv0JgC3W~2_Fwsw>; z$=LC`U7T0o_vRnG5^tlLkjIujbj~v|c z;Y6S6$wfRYf4v;fGc5Yh#hCoX>+Bppdnf(v#m`z6dStn)uP~ZhZaQI6>2F?_`ZcF* zYR}jndSg{KHO<Tuaf*T$jFQr`${C mveX6r6~(s3(*Jeq8U8ig&CQIHpEs}YkpBBD+2@5D^C~4kc@k8Z{D7? z$UuPYK^&uEg3|H=yN-9i?H_;JV60S@ToznyXnnYT<=3nJ0*j}%$xr*)pBVk+rRwR@ zqW*K6y>E%HW&9SN;&tM)ZIH&2>;F{OtTqyKIuQI}>5?_CaxG#^rWFcge@(s76gq8= zYL3gi$!n4ntu!CFwz!-;FyC^`V~Zot>^0xG3nX+jY^-l%-syL|zqUQ@?S{6uF0YmJ zlf0IfvF5*$wEFn4z`~Mc)oo=Rt6zo{9JWl3Wk;EPSPfcpR69x@tU@*5afEp7se7x%W+2FH-rDPkYxPwzJhsom0Q^8SirX&KH|D^=5vA_NQ|}C)NdB z<=ClhtJnHRYqjLGFNxMR%NQpWwawa77jblH!2W|$JrkC>RWMIdtMWN>K>Cn~$DC4$ z8A^L@9N<30qccfSCig){z-@=#fSU(c6mPiPbh`17Z@+j+&&>w+`xBJ;`xidn*CQ?$ zDY28?`A%EwmB5pSnsvXNxsaTg6PJAEkOJ4<>70ujnl+jqpJr+NI{9;^+$Y((Rco1< zoEzF5g{3aBT#MI!t^aBNU8|UAiJ6I8HY)CJ%gH(MU_Q^s?`t1>J0F+W@bBWrzcYUy zvu>#D?fn{Wblbl1H{XWCvUR2_a{5!Zymbu7V=iu)d-h{g`-Uxzs)tUNwA?T#aEiDo z6BWk6u29%p;BZ6jOHjDMGQCVeqwS^@Yrfo={fjO57F)I2RyxnF`oC#<8_ub${PI}2)M$0MfO@gU*@+f&qYr;ObtjVR z>eg6CpNU$TZ-O%&k9Qnh;`{k{jgz}VSyqHb>Vl2^PCl`zNzz?wR+%r~wS8st<|&VM z`pjE6J8%876GykoY-Rds;XZA_mxws-&rf!}DO&sPVrBR~-*xtPC;aXI%>7%{s`~X+ S0|8(*VeoYIb6Mw<&;$U}>BL0< literal 0 HcmV?d00001 diff --git a/zhuike/src/main/res/drawable/ic_arrow_downward_black_24dp.xml b/zhuike/src/main/res/drawable/ic_arrow_downward_black_24dp.xml new file mode 100644 index 0000000..4c58652 --- /dev/null +++ b/zhuike/src/main/res/drawable/ic_arrow_downward_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable/ic_feedback_black_24dp.xml b/zhuike/src/main/res/drawable/ic_feedback_black_24dp.xml new file mode 100644 index 0000000..c97ae1c --- /dev/null +++ b/zhuike/src/main/res/drawable/ic_feedback_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable/ic_get_app_black_24dp.xml b/zhuike/src/main/res/drawable/ic_get_app_black_24dp.xml new file mode 100644 index 0000000..b8e8361 --- /dev/null +++ b/zhuike/src/main/res/drawable/ic_get_app_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable/ic_import_contacts_black_24dp.xml b/zhuike/src/main/res/drawable/ic_import_contacts_black_24dp.xml new file mode 100644 index 0000000..1587b50 --- /dev/null +++ b/zhuike/src/main/res/drawable/ic_import_contacts_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/drawable/ic_settings_black_24dp.xml b/zhuike/src/main/res/drawable/ic_settings_black_24dp.xml new file mode 100644 index 0000000..79af3ab --- /dev/null +++ b/zhuike/src/main/res/drawable/ic_settings_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/zhuike/src/main/res/layout/activity_main3.xml b/zhuike/src/main/res/layout/activity_main3.xml deleted file mode 100644 index 420e626..0000000 --- a/zhuike/src/main/res/layout/activity_main3.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/zhuike/src/main/res/layout/activity_main4.xml b/zhuike/src/main/res/layout/activity_main4.xml deleted file mode 100644 index 02cddf0..0000000 --- a/zhuike/src/main/res/layout/activity_main4.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - diff --git a/zhuike/src/main/res/layout/activity_main5.xml b/zhuike/src/main/res/layout/activity_main5.xml deleted file mode 100644 index f89d8f7..0000000 --- a/zhuike/src/main/res/layout/activity_main5.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/zhuike/src/main/res/layout/activity_main6.xml b/zhuike/src/main/res/layout/activity_main6.xml deleted file mode 100644 index 9f78b62..0000000 --- a/zhuike/src/main/res/layout/activity_main6.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/zhuike/src/main/res/layout/activity_main7.xml b/zhuike/src/main/res/layout/activity_main7.xml deleted file mode 100644 index 58a0bd8..0000000 --- a/zhuike/src/main/res/layout/activity_main7.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/zhuike/src/main/res/layout/activity_toobar.xml b/zhuike/src/main/res/layout/activity_toobar.xml deleted file mode 100644 index 988102a..0000000 --- a/zhuike/src/main/res/layout/activity_toobar.xml +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/zhuike/src/main/res/layout/fragment_shelf_botoomsheetdialog.xml b/zhuike/src/main/res/layout/fragment_shelf_botoomsheetdialog.xml index e63142c..6ca1f76 100644 --- a/zhuike/src/main/res/layout/fragment_shelf_botoomsheetdialog.xml +++ b/zhuike/src/main/res/layout/fragment_shelf_botoomsheetdialog.xml @@ -122,14 +122,14 @@ android:layout_height="wrap_content" android:gravity="bottom" android:background="@color/white" - android:padding="10dp" + android:padding="40dp" android:paddingBottom="5dp" > - - - - - - - - diff --git a/zhuike/src/main/res/menu/activity_main2_drawer.xml b/zhuike/src/main/res/menu/activity_main2_drawer.xml index 0d3007b..2238f99 100644 --- a/zhuike/src/main/res/menu/activity_main2_drawer.xml +++ b/zhuike/src/main/res/menu/activity_main2_drawer.xml @@ -6,30 +6,35 @@ + android:title="给个好评" + android:visible="false" + /> diff --git a/zhuike/src/main/res/menu/activity_main4_drawer.xml b/zhuike/src/main/res/menu/activity_main4_drawer.xml deleted file mode 100644 index a30626e..0000000 --- a/zhuike/src/main/res/menu/activity_main4_drawer.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/zhuike/src/main/res/menu/activity_main_drawer.xml b/zhuike/src/main/res/menu/activity_main_drawer.xml deleted file mode 100644 index 03d6f75..0000000 --- a/zhuike/src/main/res/menu/activity_main_drawer.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/zhuike/src/main/res/menu/main2.xml b/zhuike/src/main/res/menu/main2.xml deleted file mode 100644 index 9a5d114..0000000 --- a/zhuike/src/main/res/menu/main2.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - diff --git a/zhuike/src/main/res/menu/main4.xml b/zhuike/src/main/res/menu/main4.xml deleted file mode 100644 index 05e96a0..0000000 --- a/zhuike/src/main/res/menu/main4.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/zhuike/src/main/res/menu/menu_book.xml b/zhuike/src/main/res/menu/menu_book.xml deleted file mode 100644 index c1636ea..0000000 --- a/zhuike/src/main/res/menu/menu_book.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/zhuike/src/main/res/menu/menu_create_shudan.xml b/zhuike/src/main/res/menu/menu_create_shudan.xml deleted file mode 100644 index aecc55f..0000000 --- a/zhuike/src/main/res/menu/menu_create_shudan.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - \ No newline at end of file diff --git a/zhuike/src/main/res/menu/menu_main6.xml b/zhuike/src/main/res/menu/menu_main6.xml deleted file mode 100644 index 0249ffb..0000000 --- a/zhuike/src/main/res/menu/menu_main6.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/zhuike/src/main/res/menu/menu_main7.xml b/zhuike/src/main/res/menu/menu_main7.xml deleted file mode 100644 index df57432..0000000 --- a/zhuike/src/main/res/menu/menu_main7.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/zhuike/src/main/res/menu/menu_scrolling.xml b/zhuike/src/main/res/menu/menu_scrolling.xml deleted file mode 100644 index 1c3baf0..0000000 --- a/zhuike/src/main/res/menu/menu_scrolling.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/zhuike/src/main/res/xml/provider_paths.xml b/zhuike/src/main/res/xml/provider_paths.xml new file mode 100644 index 0000000..4ff8931 --- /dev/null +++ b/zhuike/src/main/res/xml/provider_paths.xml @@ -0,0 +1,4 @@ + + + + diff --git a/zhuike/zhuike.iml b/zhuike/zhuike.iml index e2a9b4f..447b306 100644 --- a/zhuike/zhuike.iml +++ b/zhuike/zhuike.iml @@ -88,6 +88,7 @@ +