From c5e5df9e52abc6fa74abe4a07de9cd9023ceba05 Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Thu, 25 Jun 2015 19:00:11 +0000 Subject: [PATCH] Many changes + minor bug fixing --- android/res/layout/article_album_element.xml | 14 + .../res/layout/article_album_element_item.xml | 6 - android/res/layout/article_photo_element.xml | 10 +- android/res/layout/fragment_article_page.xml | 11 + android/res/layout/fragment_catalog_page.xml | 30 ++ android/res/layout/fragment_news_page.xml | 4 + android/res/layout/fragment_osm_map_page.xml | 11 + .../layout/fragment_photo_album_list_page.xml | 1 + .../res/layout/fragment_photo_album_page.xml | 10 +- android/res/layout/fragment_photo_page.xml | 8 + android/res/layout/fragment_video_page.xml | 15 +- .../res/layout/fragment_video_record_page.xml | 8 + android/res/layout/journal_element.xml | 6 +- android/res/layout/main_page_list_element.xml | 6 + android/res/layout/main_page_news.xml | 31 +- android/res/layout/news_page_list_footer.xml | 21 + android/res/layout/news_page_list_header.xml | 8 + android/res/layout/photo_album_element.xml | 13 +- .../res/layout/photo_album_list_element.xml | 2 +- android/res/layout/photo_page_element.xml | 41 +- .../res/layout/video_page_list_element.xml | 20 +- android/res/values/strings.xml | 2 + .../bashgid/AlbumListFragment.java | 75 ++- .../fishrungames/bashgid/ArticleFragment.java | 119 ++++- .../fishrungames/bashgid/CatalogFragment.java | 184 ++++++++ .../bashgid/DynamicImageView.java | 27 ++ .../fishrungames/bashgid/JournalFragment.java | 67 ++- .../fishrungames/bashgid/MainActivity.java | 402 +++++++++++++--- .../bashgid/MainPageFragment.java | 84 +++- .../bashgid/MainPageHListViewAdapters.java | 76 ++- .../bashgid/NewsListFragment.java | 146 ++++-- .../bashgid/NewsRecordFragment.java | 47 +- .../bashgid/OsmMapHolderFragment.java | 331 +++++++------ .../bashgid/PhotoAlbumFragment.java | 34 +- .../fishrungames/bashgid/PhotoFragment.java | 57 ++- .../bashgid/PhotoFragmentAdapter.java | 15 +- .../bashgid/VideoListFragment.java | 74 ++- .../bashgid/VideoRecordFragment.java | 102 +++- .../bashgid/core/AlbumManager.java | 7 + .../bashgid/core/ArticleManager.java | 14 + .../bashgid/core/ChannelManager.java | 10 + .../bashgid/core/DatabaseDownloadTask.java | 444 ++++++++++++++++++ .../bashgid/core/DatabaseGetAlbumTask.java | 39 ++ .../bashgid/core/DatabaseGetJournalTask.java | 45 ++ .../bashgid/core/JournalManager.java | 20 +- .../bashgid/core/NewsDownloadTask.java | 32 +- .../bashgid/core/NewsManager.java | 8 +- .../bashgid/core/VideoManager.java | 11 + .../bashgid/core/db/AlbumDataSource.java | 2 +- .../bashgid/core/db/ArticleDataSource.java | 29 +- .../bashgid/core/db/ChannelDataSource.java | 2 +- .../bashgid/core/db/JournalDataSource.java | 179 +++++-- .../bashgid/core/db/PhotoDataSource.java | 5 +- .../bashgid/core/db/VideoDataSource.java | 6 +- 54 files changed, 2483 insertions(+), 488 deletions(-) create mode 100644 android/res/layout/fragment_catalog_page.xml create mode 100644 android/res/layout/news_page_list_footer.xml create mode 100644 android/src/fishrungames/bashgid/CatalogFragment.java create mode 100644 android/src/fishrungames/bashgid/DynamicImageView.java create mode 100644 android/src/fishrungames/bashgid/core/DatabaseDownloadTask.java create mode 100644 android/src/fishrungames/bashgid/core/DatabaseGetAlbumTask.java create mode 100644 android/src/fishrungames/bashgid/core/DatabaseGetJournalTask.java diff --git a/android/res/layout/article_album_element.xml b/android/res/layout/article_album_element.xml index 39bf573..125ffd5 100644 --- a/android/res/layout/article_album_element.xml +++ b/android/res/layout/article_album_element.xml @@ -9,6 +9,20 @@ android:paddingTop="4dp" android:showDividers="middle" > + + + + - - diff --git a/android/res/layout/article_photo_element.xml b/android/res/layout/article_photo_element.xml index 1730d6c..392d5f3 100644 --- a/android/res/layout/article_photo_element.xml +++ b/android/res/layout/article_photo_element.xml @@ -11,12 +11,16 @@ + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" /> + android:gravity="center_horizontal" + android:text="TextView" + android:textSize="18sp" + android:textStyle="bold" /> diff --git a/android/res/layout/fragment_article_page.xml b/android/res/layout/fragment_article_page.xml index 2a11301..cb37c70 100644 --- a/android/res/layout/fragment_article_page.xml +++ b/android/res/layout/fragment_article_page.xml @@ -7,6 +7,9 @@ android:orientation="vertical" tools:context="fishrungames.bashgid.MainPageFragment" > + + + + + diff --git a/android/res/layout/fragment_catalog_page.xml b/android/res/layout/fragment_catalog_page.xml new file mode 100644 index 0000000..64bfe3c --- /dev/null +++ b/android/res/layout/fragment_catalog_page.xml @@ -0,0 +1,30 @@ + + + + + + + + + diff --git a/android/res/layout/fragment_news_page.xml b/android/res/layout/fragment_news_page.xml index 6508282..0c2b6bc 100644 --- a/android/res/layout/fragment_news_page.xml +++ b/android/res/layout/fragment_news_page.xml @@ -7,6 +7,7 @@ android:orientation="vertical" tools:context="fishrungames.bashgid.MainPageFragment" > + + + + diff --git a/android/res/layout/fragment_osm_map_page.xml b/android/res/layout/fragment_osm_map_page.xml index 86d34cf..c995b62 100644 --- a/android/res/layout/fragment_osm_map_page.xml +++ b/android/res/layout/fragment_osm_map_page.xml @@ -9,6 +9,17 @@ android:paddingRight="0dp" android:paddingTop="0dp" tools:context="fishrungames.bashgid.MapHolderFragment" > + + + + + diff --git a/android/res/layout/fragment_photo_page.xml b/android/res/layout/fragment_photo_page.xml index 3108acd..ec5e6b2 100644 --- a/android/res/layout/fragment_photo_page.xml +++ b/android/res/layout/fragment_photo_page.xml @@ -4,6 +4,14 @@ android:layout_height="match_parent" android:orientation="vertical" > + + - + + + android:gravity="bottom" + android:horizontalSpacing="12dp" + android:numColumns="4" + android:verticalSpacing="12dp" > + diff --git a/android/res/layout/fragment_video_record_page.xml b/android/res/layout/fragment_video_record_page.xml index 32535fc..b2d140d 100644 --- a/android/res/layout/fragment_video_record_page.xml +++ b/android/res/layout/fragment_video_record_page.xml @@ -5,6 +5,14 @@ android:layout_margin="6dp" android:orientation="vertical" > + + + android:layout_height="80dp" + android:layout_gravity="right" + android:layout_weight="0" + android:scaleType="centerInside" /> diff --git a/android/res/layout/main_page_list_element.xml b/android/res/layout/main_page_list_element.xml index c56db76..8702661 100644 --- a/android/res/layout/main_page_list_element.xml +++ b/android/res/layout/main_page_list_element.xml @@ -36,6 +36,12 @@ + + + + + android:contentDescription="@string/news_content_description" + android:maxWidth="40dp" + android:scaleType="centerInside" />