From 3258788e169947586c98d062b4244801ffd5e025 Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Thu, 20 Nov 2014 10:57:28 +0000 Subject: [PATCH] Setting + search + bug fixing --- android/AndroidManifest.xml | 27 +-- android/res/layout/fragment_search_page.xml | 18 ++ android/res/layout/fragment_settings_page.xml | 65 +++++ .../res/layout/search_page_list_element.xml | 44 ++++ .../res/layout/search_page_list_header.xml | 22 ++ android/res/values-ru/strings.xml | 3 + android/res/values-zh-rCN/strings.xml | 2 + android/res/values/strings.xml | 2 +- .../fishrungames/bashgid/MainActivity.java | 63 +++-- .../bashgid/MainPageFragment.java | 5 +- .../bashgid/NavigationDrawerFragment.java | 2 - .../bashgid/NewsListFragment.java | 5 +- .../fishrungames/bashgid/SearchFragment.java | 224 ++++++++++++++++++ .../bashgid/core/NewsManager.java | 75 +++++- .../core/NewsSearchResultInterface.java | 12 + .../bashgid/core/NewsSearchRunnable.java | 92 +++++++ .../core/NewsUpdatedCallbackInterface.java | 8 + .../bashgid/core/RemoveCallbackInterface.java | 8 + .../bashgid/core/db/NewsDataSource.java | 52 +++- 19 files changed, 664 insertions(+), 65 deletions(-) create mode 100644 android/res/layout/fragment_search_page.xml create mode 100644 android/res/layout/fragment_settings_page.xml create mode 100644 android/res/layout/search_page_list_element.xml create mode 100644 android/res/layout/search_page_list_header.xml create mode 100644 android/src/fishrungames/bashgid/SearchFragment.java create mode 100644 android/src/fishrungames/bashgid/core/NewsSearchResultInterface.java create mode 100644 android/src/fishrungames/bashgid/core/NewsSearchRunnable.java create mode 100644 android/src/fishrungames/bashgid/core/NewsUpdatedCallbackInterface.java create mode 100644 android/src/fishrungames/bashgid/core/RemoveCallbackInterface.java diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index d53da66..1e07e69 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -23,31 +23,10 @@ android:screenOrientation="portrait" > - - - - - - + + - + diff --git a/android/res/layout/fragment_search_page.xml b/android/res/layout/fragment_search_page.xml new file mode 100644 index 0000000..263f855 --- /dev/null +++ b/android/res/layout/fragment_search_page.xml @@ -0,0 +1,18 @@ + + + + + + diff --git a/android/res/layout/fragment_settings_page.xml b/android/res/layout/fragment_settings_page.xml new file mode 100644 index 0000000..a52c340 --- /dev/null +++ b/android/res/layout/fragment_settings_page.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + diff --git a/android/res/layout/search_page_list_element.xml b/android/res/layout/search_page_list_element.xml new file mode 100644 index 0000000..2a7e4e8 --- /dev/null +++ b/android/res/layout/search_page_list_element.xml @@ -0,0 +1,44 @@ + + + + + + + +