diff --git a/android/res/layout/article_album_element.xml b/android/res/layout/article_album_element.xml
index 125ffd5..24a6c9b 100644
--- a/android/res/layout/article_album_element.xml
+++ b/android/res/layout/article_album_element.xml
@@ -2,26 +2,26 @@
+ android:layout_margin="@dimen/medium_margin"
+ android:text="TextView"
+ android:textSize="@dimen/small_text_size" />
diff --git a/android/res/layout/article_button_element.xml b/android/res/layout/article_button_element.xml
index 3633a0f..6a1250a 100644
--- a/android/res/layout/article_button_element.xml
+++ b/android/res/layout/article_button_element.xml
@@ -3,7 +3,6 @@
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="4dp"
android:background="@color/light_grey_1"
android:orientation="vertical"
android:showDividers="middle" >
@@ -13,10 +12,10 @@
style="?android:attr/borderlessButtonStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="8dp"
+ android:layout_margin="@dimen/medium_margin"
android:background="@color/bkg2"
android:drawableLeft="@drawable/ic_action_web_site"
android:text="@string/go_to_website"
- android:textSize="30sp" />
+ android:textSize="@dimen/xlarge_text_size" />
diff --git a/android/res/layout/article_geotag_element.xml b/android/res/layout/article_geotag_element.xml
index 76b457b..e6ec4c3 100644
--- a/android/res/layout/article_geotag_element.xml
+++ b/android/res/layout/article_geotag_element.xml
@@ -3,7 +3,6 @@
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="4dp"
android:background="@color/light_grey_1"
android:orientation="vertical"
android:showDividers="middle" >
@@ -12,31 +11,35 @@
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_margin="8dp"
+ android:layout_margin="@dimen/medium_margin"
android:text="@string/address_form"
- android:textSize="24sp"
+ android:textSize="@dimen/large_text_size"
android:textStyle="bold" />
+ android:textSize="@dimen/large_text_size"
+ />
+ android:text="@string/hold_address"
+ android:textSize="@dimen/small_text_size"
+ android:layout_marginBottom="@dimen/medium_margin"
+ android:layout_marginLeft="@dimen/medium_margin"/>
diff --git a/android/res/layout/article_phone_element.xml b/android/res/layout/article_phone_element.xml
index 2e396f1..e6403e2 100644
--- a/android/res/layout/article_phone_element.xml
+++ b/android/res/layout/article_phone_element.xml
@@ -3,7 +3,6 @@
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="4dp"
android:background="@color/light_grey_1"
android:orientation="vertical"
android:showDividers="middle" >
@@ -13,10 +12,10 @@
style="?android:attr/borderlessButtonStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="8dp"
+ android:layout_margin="@dimen/medium_margin"
android:background="@color/bkg2"
android:drawableLeft="@drawable/ic_action_call"
android:gravity="left|center_vertical"
- android:textSize="30sp" />
+ android:textSize="@dimen/xlarge_text_size" />
diff --git a/android/res/layout/article_photo_element.xml b/android/res/layout/article_photo_element.xml
index 955c158..ac3f1ce 100644
--- a/android/res/layout/article_photo_element.xml
+++ b/android/res/layout/article_photo_element.xml
@@ -3,7 +3,6 @@
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="4dp"
android:background="@color/light_grey_1"
android:orientation="vertical"
android:showDividers="middle" >
@@ -23,7 +22,7 @@
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="TextView"
- android:textSize="18sp"
+ android:textSize="@dimen/medium_text_size"
android:textStyle="bold" />
diff --git a/android/res/layout/article_text_element.xml b/android/res/layout/article_text_element.xml
index 2cc7622..8ee75f2 100644
--- a/android/res/layout/article_text_element.xml
+++ b/android/res/layout/article_text_element.xml
@@ -3,7 +3,6 @@
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="4dp"
android:background="@color/light_grey_1"
android:orientation="vertical"
android:showDividers="middle" >
diff --git a/android/res/layout/drawer_list_element.xml b/android/res/layout/drawer_list_element.xml
index f780d33..1c8c602 100644
--- a/android/res/layout/drawer_list_element.xml
+++ b/android/res/layout/drawer_list_element.xml
@@ -9,10 +9,10 @@
+ android:textSize="@dimen/medium_text_size" />
diff --git a/android/res/layout/fragment_article_page.xml b/android/res/layout/fragment_article_page.xml
index cb37c70..db8317b 100644
--- a/android/res/layout/fragment_article_page.xml
+++ b/android/res/layout/fragment_article_page.xml
@@ -7,26 +7,23 @@
android:orientation="vertical"
tools:context="fishrungames.bashgid.MainPageFragment" >
-
-
-
+ android:dividerHeight="@dimen/large_divider_height" >
diff --git a/android/res/layout/fragment_catalog_page.xml b/android/res/layout/fragment_catalog_page.xml
index 64bfe3c..f71009a 100644
--- a/android/res/layout/fragment_catalog_page.xml
+++ b/android/res/layout/fragment_catalog_page.xml
@@ -10,8 +10,8 @@
@@ -19,11 +19,11 @@
android:id="@+id/listView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginLeft="16dp"
- android:layout_marginRight="16dp"
+ android:layout_marginBottom="@dimen/large_margin"
+ android:layout_marginLeft="@dimen/large_margin"
+ android:layout_marginRight="@dimen/large_margin"
android:divider="@drawable/transparent"
- android:dividerHeight="18dp"
- android:paddingBottom="16dp" >
+ android:dividerHeight="@dimen/large_divider_height" >
diff --git a/android/res/layout/fragment_main_page.xml b/android/res/layout/fragment_main_page.xml
index 2a11301..156b111 100644
--- a/android/res/layout/fragment_main_page.xml
+++ b/android/res/layout/fragment_main_page.xml
@@ -11,11 +11,12 @@
android:id="@+id/listView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginLeft="16dp"
- android:layout_marginRight="16dp"
+ android:layout_marginBottom="@dimen/large_margin"
+ android:layout_marginLeft="@dimen/large_margin"
+ android:layout_marginRight="@dimen/large_margin"
android:divider="@drawable/transparent"
- android:dividerHeight="18dp"
- android:paddingBottom="16dp" >
+ android:dividerHeight="@dimen/large_divider_height" >
+
diff --git a/android/res/layout/fragment_navigation_drawer.xml b/android/res/layout/fragment_navigation_drawer.xml
index 33c81c3..1374b60 100644
--- a/android/res/layout/fragment_navigation_drawer.xml
+++ b/android/res/layout/fragment_navigation_drawer.xml
@@ -6,8 +6,8 @@
android:background="@color/drawer_color"
android:choiceMode="singleChoice"
android:divider="@color/drawer_divider_color"
- android:dividerHeight="1dp"
- android:paddingLeft="10dp"
- android:paddingRight="10dp"
+ android:dividerHeight="@dimen/navigation_drawer_divider_height"
+ android:paddingLeft="@dimen/navigation_drawer_padding_left"
+ android:paddingRight="@dimen/navigation_drawer_padding_right"
tools:context="fishrungames.bashgid.NavigationDrawerFragment" />
diff --git a/android/res/layout/fragment_news_page.xml b/android/res/layout/fragment_news_page.xml
index 0c2b6bc..a0ffb6a 100644
--- a/android/res/layout/fragment_news_page.xml
+++ b/android/res/layout/fragment_news_page.xml
@@ -12,11 +12,12 @@
android:id="@+id/listView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginLeft="16dp"
- android:layout_marginRight="16dp"
+ android:layout_marginBottom="@dimen/large_margin"
+ android:layout_marginLeft="@dimen/large_margin"
+ android:layout_marginRight="@dimen/large_margin"
android:divider="@color/bkg2"
- android:dividerHeight="2dp"
- android:paddingBottom="16dp" >
+ android:dividerHeight="@dimen/small_divider_height"
+ >
diff --git a/android/res/layout/fragment_osm_map_page.xml b/android/res/layout/fragment_osm_map_page.xml
index 52c21f6..53f5ed2 100644
--- a/android/res/layout/fragment_osm_map_page.xml
+++ b/android/res/layout/fragment_osm_map_page.xml
@@ -11,20 +11,21 @@
tools:context="fishrungames.bashgid.MapHolderFragment" >
+ android:layout_height="wrap_content"
+ android:layout_margin="@dimen/medium_margin" />
+ android:dividerHeight="@dimen/small_divider_height" >
diff --git a/android/res/layout/fragment_photo_album_page.xml b/android/res/layout/fragment_photo_album_page.xml
index 73a1e7c..c939213 100644
--- a/android/res/layout/fragment_photo_album_page.xml
+++ b/android/res/layout/fragment_photo_album_page.xml
@@ -12,19 +12,19 @@
android:id="@+id/listView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginLeft="16dp"
- android:layout_marginRight="16dp"
+ android:layout_marginBottom="@dimen/large_margin"
+ android:layout_marginLeft="@dimen/large_margin"
+ android:layout_marginRight="@dimen/large_margin"
android:divider="@color/bkg2"
- android:dividerHeight="12dp"
- android:paddingBottom="16dp" >
+ android:dividerHeight="@dimen/small_divider_height" >
diff --git a/android/res/layout/fragment_photo_page.xml b/android/res/layout/fragment_photo_page.xml
index ec5e6b2..eac95f9 100644
--- a/android/res/layout/fragment_photo_page.xml
+++ b/android/res/layout/fragment_photo_page.xml
@@ -7,8 +7,8 @@
diff --git a/android/res/layout/fragment_search_page.xml b/android/res/layout/fragment_search_page.xml
index 263f855..083c04c 100644
--- a/android/res/layout/fragment_search_page.xml
+++ b/android/res/layout/fragment_search_page.xml
@@ -3,10 +3,9 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
- android:paddingBottom="@dimen/activity_vertical_margin"
- android:paddingLeft="@dimen/activity_horizontal_margin"
- android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
+ android:paddingBottom="@dimen/large_margin"
+ android:paddingLeft="@dimen/large_margin"
+ android:paddingRight="@dimen/large_margin"
tools:context="fishrungames.bashgid.SearchFragment" >
-
+ android:textSize="@dimen/large_text_size" />
+ android:layout_marginBottom="@dimen/medium_margin"
+ android:baselineAligned="false" >
+ android:textSize="@dimen/language_text_size" />
+ android:textSize="@dimen/language_text_size" />
+ android:textSize="@dimen/language_text_size" />
+ android:textSize="@dimen/small_text_size" />
+ android:src="@drawable/kitap"
+ android:layout_marginBottom="@dimen/medium_margin" />
+ android:text="@string/call_support"
+ android:textSize="@dimen/small_text_size"
+ android:layout_marginBottom="@dimen/medium_margin"
+ />
+ android:text="@string/visit_kitap"
+ android:textSize="@dimen/small_text_size"
+ android:layout_marginBottom="@dimen/medium_margin" />
+ android:text="@string/visit_developer"
+ android:textSize="@dimen/small_text_size"
+ android:layout_marginBottom="@dimen/medium_margin" />
+ android:text="@string/visit_translator"
+ android:textSize="@dimen/small_text_size"
+ android:layout_marginBottom="@dimen/medium_margin" />
-
diff --git a/android/res/layout/fragment_video_page.xml b/android/res/layout/fragment_video_page.xml
index 00bc7d0..af21794 100644
--- a/android/res/layout/fragment_video_page.xml
+++ b/android/res/layout/fragment_video_page.xml
@@ -6,8 +6,8 @@
@@ -16,9 +16,9 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom"
- android:horizontalSpacing="12dp"
- android:numColumns="4"
- android:verticalSpacing="12dp" >
+ android:horizontalSpacing="@dimen/grid_view_horizontal_spacing"
+ android:numColumns="@integer/grid_columns"
+ android:verticalSpacing="@dimen/grid_view_vertical_spacing" >
diff --git a/android/res/layout/fragment_video_record_page.xml b/android/res/layout/fragment_video_record_page.xml
index b2d140d..880824e 100644
--- a/android/res/layout/fragment_video_record_page.xml
+++ b/android/res/layout/fragment_video_record_page.xml
@@ -1,35 +1,39 @@
-
+ android:layout_height="match_parent">
-
-
-
+
-
+
-
+
+
+
+
+
+
+
+
-
diff --git a/android/res/layout/fragment_welcome.xml b/android/res/layout/fragment_welcome.xml
index 7e230f7..2158ea9 100644
--- a/android/res/layout/fragment_welcome.xml
+++ b/android/res/layout/fragment_welcome.xml
@@ -4,17 +4,14 @@
android:layout_height="match_parent"
android:background="@drawable/background"
android:orientation="vertical"
- android:paddingBottom="@dimen/activity_vertical_margin"
- android:paddingLeft="@dimen/activity_horizontal_margin"
- android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
+ android:padding="@dimen/large_margin"
tools:context="fishrungames.bashgid.WelcomeFragment" >
@@ -22,7 +19,7 @@
@@ -39,14 +36,14 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/lang_english"
- android:textSize="20sp" />
+ android:textSize="@dimen/language_text_size" />
+ android:textSize="@dimen/language_text_size" />
+ android:textSize="@dimen/language_text_size" />
@@ -18,22 +17,29 @@
android:id="@+id/titleTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_margin="@dimen/small_margin"
android:text="TextView"
- android:textSize="20sp"
+ android:textSize="@dimen/medium_text_size"
android:textStyle="bold" />
+ android:layout_marginBottom="@dimen/small_margin"
+ android:layout_marginLeft="@dimen/small_margin"
+ android:layout_marginRight="@dimen/small_margin"
+ android:text="TextView"
+ android:textSize="@dimen/xsmall_text_size" />
+
diff --git a/android/res/layout/journal_page_header.xml b/android/res/layout/journal_page_header.xml
index 396de02..3142b65 100644
--- a/android/res/layout/journal_page_header.xml
+++ b/android/res/layout/journal_page_header.xml
@@ -4,18 +4,16 @@
android:layout_height="match_parent"
android:background="@color/bkg1"
android:orientation="vertical"
- android:paddingLeft="20dp"
- android:paddingRight="20dp"
tools:context="fishrungames.bashgid.MainPageFragment" >
diff --git a/android/res/layout/main_page_header.xml b/android/res/layout/main_page_header.xml
index 7aed26b..242240f 100644
--- a/android/res/layout/main_page_header.xml
+++ b/android/res/layout/main_page_header.xml
@@ -7,9 +7,9 @@
diff --git a/android/res/layout/main_page_list_element.xml b/android/res/layout/main_page_list_element.xml
index e06a4b8..6bd0b7f 100644
--- a/android/res/layout/main_page_list_element.xml
+++ b/android/res/layout/main_page_list_element.xml
@@ -2,58 +2,55 @@
+
+
+
+
-
-
+ android:layout_gravity="right"
+ android:gravity="right|center_vertical" >
+ android:textSize="@dimen/medium_text_size" />
-
-
+ android:layout_marginBottom="@dimen/medium_margin"
+ android:layout_marginTop="@dimen/medium_margin" >
diff --git a/android/res/layout/news_page_list_element.xml b/android/res/layout/news_page_list_element.xml
index 75d08b6..44f6a3c 100644
--- a/android/res/layout/news_page_list_element.xml
+++ b/android/res/layout/news_page_list_element.xml
@@ -1,43 +1,35 @@
-
-
-
+ android:layout_margin="@dimen/small_margin"
+ android:text="TextView"
+ android:textSize="@dimen/medium_text_size"
+ android:textStyle="bold" />
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="@dimen/small_margin"
+ android:layout_marginLeft="@dimen/small_margin"
+ android:layout_marginRight="@dimen/small_margin"
+ android:text="TextView"
+ android:textSize="@dimen/xsmall_text_size" />
diff --git a/android/res/layout/news_page_list_footer.xml b/android/res/layout/news_page_list_footer.xml
index 68aa4df..30ae856 100644
--- a/android/res/layout/news_page_list_footer.xml
+++ b/android/res/layout/news_page_list_footer.xml
@@ -4,8 +4,6 @@
android:layout_height="match_parent"
android:background="@color/bkg1"
android:orientation="vertical"
- android:paddingLeft="20dp"
- android:paddingRight="20dp"
tools:context="fishrungames.bashgid.MainPageFragment" >
\ No newline at end of file
diff --git a/android/res/layout/news_page_list_header.xml b/android/res/layout/news_page_list_header.xml
index 0bebb06..7368bf5 100644
--- a/android/res/layout/news_page_list_header.xml
+++ b/android/res/layout/news_page_list_header.xml
@@ -13,16 +13,16 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
- android:layout_margin="8dp"
+ android:layout_margin="@dimen/medium_margin"
android:text="@string/news_header"
- android:textSize="24sp"
+ android:textSize="@dimen/large_text_size"
android:textStyle="bold" />
diff --git a/android/res/layout/osm_dialog.xml b/android/res/layout/osm_dialog.xml
index 941386d..20fd556 100644
--- a/android/res/layout/osm_dialog.xml
+++ b/android/res/layout/osm_dialog.xml
@@ -1,57 +1,55 @@
-
-
+
-
+ android:layout_gravity="center_horizontal"
+ android:layout_margin="@dimen/small_margin"
+ android:scaleType="centerCrop" />
+ android:textSize="@dimen/medium_text_size" />
+ android:layout_margin="@dimen/small_margin"
+ android:text="@string/hold_address"
+ android:textSize="@dimen/small_text_size" />
+ android:textSize="@dimen/medium_text_size" />
-
-
diff --git a/android/res/layout/photo_album_element.xml b/android/res/layout/photo_album_element.xml
index 366d4b4..21d64c7 100644
--- a/android/res/layout/photo_album_element.xml
+++ b/android/res/layout/photo_album_element.xml
@@ -3,7 +3,6 @@
android:id="@+id/LinearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="4dp"
android:background="@color/light_grey_1"
android:orientation="horizontal"
android:showDividers="middle" >
diff --git a/android/res/layout/photo_album_list_element.xml b/android/res/layout/photo_album_list_element.xml
index 18ad0aa..61e84b6 100644
--- a/android/res/layout/photo_album_list_element.xml
+++ b/android/res/layout/photo_album_list_element.xml
@@ -3,7 +3,6 @@
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="4dp"
android:background="@color/light_grey_1"
android:orientation="vertical"
android:showDividers="middle" >
diff --git a/android/res/layout/photo_page_element.xml b/android/res/layout/photo_page_element.xml
index 2d34bac..41ec3a8 100644
--- a/android/res/layout/photo_page_element.xml
+++ b/android/res/layout/photo_page_element.xml
@@ -3,6 +3,7 @@
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:gravity="center_vertical"
android:orientation="vertical" >
+ android:layout_marginLeft="@dimen/large_margin"
+ android:layout_marginRight="@dimen/large_margin"
+ android:text="TextView"
+ android:textSize="@dimen/medium_text_size" />
+
diff --git a/android/res/layout/search_page_list_header.xml b/android/res/layout/search_page_list_header.xml
index a56c9d7..e671c90 100644
--- a/android/res/layout/search_page_list_header.xml
+++ b/android/res/layout/search_page_list_header.xml
@@ -4,8 +4,6 @@
android:layout_height="match_parent"
android:background="@color/bkg1"
android:orientation="vertical"
- android:paddingLeft="20dp"
- android:paddingRight="20dp"
tools:context="fishrungames.bashgid.SearchFragment" >
diff --git a/android/res/layout/simple_hview_list_element.xml b/android/res/layout/simple_hview_list_element.xml
index 02b9232..eb635ac 100644
--- a/android/res/layout/simple_hview_list_element.xml
+++ b/android/res/layout/simple_hview_list_element.xml
@@ -10,11 +10,11 @@
+ android:textSize="@dimen/small_text_size" />
diff --git a/android/res/layout/spinner_dropdown_item.xml b/android/res/layout/spinner_dropdown_item.xml
new file mode 100644
index 0000000..2adcae7
--- /dev/null
+++ b/android/res/layout/spinner_dropdown_item.xml
@@ -0,0 +1,10 @@
+
+
+
\ No newline at end of file
diff --git a/android/res/layout/video_page_list_element.xml b/android/res/layout/video_page_list_element.xml
index a8d0b84..f72c281 100644
--- a/android/res/layout/video_page_list_element.xml
+++ b/android/res/layout/video_page_list_element.xml
@@ -2,14 +2,11 @@
-
+
diff --git a/android/res/menu/global.xml b/android/res/menu/global.xml
index 3ad6f3b..21f8f37 100644
--- a/android/res/menu/global.xml
+++ b/android/res/menu/global.xml
@@ -1,10 +1,10 @@
diff --git a/android/res/values-large/dimens.xml b/android/res/values-large/dimens.xml
new file mode 100644
index 0000000..c22598e
--- /dev/null
+++ b/android/res/values-large/dimens.xml
@@ -0,0 +1,73 @@
+
+
+ 16dp
+
+ 100dp
+
+ 2dp
+
+ 240dp
+
+ 1dp
+
+ 10dp
+ 10dp
+
+ 48dp
+ 4dp
+ 10dp
+
+ 16dp
+
+ 8dp
+
+ 4dp
+
+
+ 60dp
+ 30dp
+
+ 24dp
+
+ 20dp
+
+ 18dp
+
+ 14dp
+
+
+ 30dp
+
+ 24dp
+
+
+
+
+ 12dp
+ 12dp
+
+ 240dp
+
+ 24dp
+
+
+
+ 80dp
+
+ 180dp
+
+ 2dp
+
+
+ 80dp
+
+ 160dp
+ 160dp
+
+
+
+
+
diff --git a/android/res/values-large/integers.xml b/android/res/values-large/integers.xml
new file mode 100644
index 0000000..ccfa332
--- /dev/null
+++ b/android/res/values-large/integers.xml
@@ -0,0 +1,5 @@
+
+
+
+ 3
+
diff --git a/android/res/values-normal/dimens.xml b/android/res/values-normal/dimens.xml
new file mode 100644
index 0000000..c8189eb
--- /dev/null
+++ b/android/res/values-normal/dimens.xml
@@ -0,0 +1,73 @@
+
+
+ 16dp
+
+ 100dp
+
+ 2dp
+
+ 240dp
+
+ 1dp
+
+ 10dp
+ 10dp
+
+ 32dp
+ 4dp
+ 10dp
+
+ 16dp
+
+ 8dp
+
+ 4dp
+
+
+ 30dp
+ 24dp
+
+ 24dp
+
+ 20dp
+
+ 18dp
+
+ 14dp
+
+ 20dp
+
+ 14dp
+
+
+
+
+
+ 12dp
+ 12dp
+
+ 240dp
+
+ 24dp
+
+
+
+ 80dp
+
+ 180dp
+
+ 2dp
+
+
+ 80dp
+
+ 160dp
+ 160dp
+
+
+
+
+
diff --git a/android/res/values-normal/integers.xml b/android/res/values-normal/integers.xml
new file mode 100644
index 0000000..b41ddd9
--- /dev/null
+++ b/android/res/values-normal/integers.xml
@@ -0,0 +1,5 @@
+
+
+
+ 2
+
diff --git a/android/res/values-ru/strings.xml b/android/res/values-ru/strings.xml
index 2f32373..c1e4e13 100644
--- a/android/res/values-ru/strings.xml
+++ b/android/res/values-ru/strings.xml
@@ -74,7 +74,7 @@
Идет поиск, пожалуйста, подождите...
Чтобы начать поиск, введите как минимум 3 символа
-Башгид (c) 2015\n\nВсе права принадлежат ГУП «Китап»\nТелефон: +73472238838\nhttp://kitap-ufa.ru/\n\nРазработчик - Владислав Хорев\nТелефон: +79260492730\nEmail: mephi1984@gmail.com\n\nПеревод на китайский язык сделан Лилией Лисицей\nТелефон: +8615756011926\n Email:lilialoo926@mail.ru
+Башгид (c) 2015\n\nВсе права принадлежат ГУП «Китап»\nТелефон: +73472238838\nhttp://kitap-ufa.ru/\n\nРазработчик - Владислав Хорев\nТелефон: +79260492730\nEmail: mephi1984@gmail.com\n\nПеревод на китайский язык сделан Лилией Лисицей\nТелефон: +8615756011926\nEmail:lilialoo926@mail.ru
У вас возникли трудности при работе с приложением? Нажмите сюда, чтобы позвонить в техподдержку.
@@ -86,6 +86,10 @@
Чтобы скопировать адрес, нажмите и его удерживайте некоторое время.
+Категория загружается...
+
+Категория загружена
+
diff --git a/android/res/values-small/dimens.xml b/android/res/values-small/dimens.xml
new file mode 100644
index 0000000..833a445
--- /dev/null
+++ b/android/res/values-small/dimens.xml
@@ -0,0 +1,70 @@
+
+
+ 16dp
+
+ 100dp
+
+ 2dp
+
+ 240dp
+
+ 1dp
+
+ 10dp
+ 10dp
+
+ 32dp
+ 4dp
+ 10dp
+
+ 16dp
+
+ 8dp
+
+ 4dp
+
+
+ 30dp
+ 24dp
+
+ 24dp
+
+ 20dp
+
+ 18dp
+
+ 14dp
+
+ 20dp
+
+ 14dp
+
+
+ 12dp
+ 12dp
+
+ 240dp
+
+ 24dp
+
+
+
+ 80dp
+
+ 180dp
+
+ 2dp
+
+
+ 80dp
+
+ 160dp
+ 160dp
+
+
+
+
+
diff --git a/android/res/values-small/integers.xml b/android/res/values-small/integers.xml
new file mode 100644
index 0000000..b41ddd9
--- /dev/null
+++ b/android/res/values-small/integers.xml
@@ -0,0 +1,5 @@
+
+
+
+ 2
+
diff --git a/android/res/values-xlarge/dimens.xml b/android/res/values-xlarge/dimens.xml
new file mode 100644
index 0000000..c22598e
--- /dev/null
+++ b/android/res/values-xlarge/dimens.xml
@@ -0,0 +1,73 @@
+
+
+ 16dp
+
+ 100dp
+
+ 2dp
+
+ 240dp
+
+ 1dp
+
+ 10dp
+ 10dp
+
+ 48dp
+ 4dp
+ 10dp
+
+ 16dp
+
+ 8dp
+
+ 4dp
+
+
+ 60dp
+ 30dp
+
+ 24dp
+
+ 20dp
+
+ 18dp
+
+ 14dp
+
+
+ 30dp
+
+ 24dp
+
+
+
+
+ 12dp
+ 12dp
+
+ 240dp
+
+ 24dp
+
+
+
+ 80dp
+
+ 180dp
+
+ 2dp
+
+
+ 80dp
+
+ 160dp
+ 160dp
+
+
+
+
+
diff --git a/android/res/values-xlarge/integers.xml b/android/res/values-xlarge/integers.xml
new file mode 100644
index 0000000..377fb4a
--- /dev/null
+++ b/android/res/values-xlarge/integers.xml
@@ -0,0 +1,5 @@
+
+
+
+ 4
+
diff --git a/android/res/values-zh-rCN/strings.xml b/android/res/values-zh-rCN/strings.xml
index a7fd2e7..8d56e7d 100644
--- a/android/res/values-zh-rCN/strings.xml
+++ b/android/res/values-zh-rCN/strings.xml
@@ -67,7 +67,7 @@
正在搜索,请稍等…
输入关键字符,开始搜索
-Bashguide (c) 2015\n\nApplication owner: ГУП «Китап»\nPhone: +73472238838\nhttp://kitap-ufa.ru/\n\nApplication is made by Vladislav Khorev\nPhone: +79260492730\nEmail: mephi1984@gmail.com\n\nTranslation to Chinese made by Little Fox Lilia\nPhone: +8615756011926\n Email:lilialoo926@mail.ru
+Bashguide (c) 2015\n\nApplication owner: ГУП «Китап»\nPhone: +73472238838\nhttp://kitap-ufa.ru/\n\nApplication is made by Vladislav Khorev\nPhone: +79260492730\nEmail: mephi1984@gmail.com\n\nTranslation to Chinese made by Little Fox Lilia\nPhone: +8615756011926\nEmail:lilialoo926@mail.ru
Having problems with application? Click here to call support.
@@ -80,5 +80,8 @@
Tap and hold address to copy it to clipboard.
-
+Category is loading...
+
+Category is loaded
+
diff --git a/android/res/values/dimens.xml b/android/res/values/dimens.xml
index 1ea857e..c22598e 100644
--- a/android/res/values/dimens.xml
+++ b/android/res/values/dimens.xml
@@ -1,13 +1,73 @@
+
+ 16dp
-
- 16dp
- 16dp
-
+ 100dp
+
+ 2dp
240dp
+
+ 1dp
+
+ 10dp
+ 10dp
+
+ 48dp
+ 4dp
+ 10dp
+
+ 16dp
+
+ 8dp
+
+ 4dp
+
+
+ 60dp
+ 30dp
+
+ 24dp
+
+ 20dp
+
+ 18dp
+
+ 14dp
+
+
+ 30dp
+
+ 24dp
+
+
+
+ 12dp
+ 12dp
+
+ 240dp
+
+ 24dp
+
+
+
+ 80dp
+
+ 180dp
+
+ 2dp
+
+
+ 80dp
+
+ 160dp
+ 160dp
+
+
+
+
diff --git a/android/res/values/integers.xml b/android/res/values/integers.xml
index abff865..829d83c 100644
--- a/android/res/values/integers.xml
+++ b/android/res/values/integers.xml
@@ -2,4 +2,5 @@
500
+ 4
diff --git a/android/res/values/strings.xml b/android/res/values/strings.xml
index 706ce14..10d1467 100644
--- a/android/res/values/strings.xml
+++ b/android/res/values/strings.xml
@@ -75,7 +75,7 @@
Search is performing, please wait...
To start search, enter at least 3 symbols
-Bashguide (c) 2015\n\nApplication owner: ГУП «Китап»\nPhone: +73472238838\nhttp://kitap-ufa.ru/\n\nApplication is made by Vladislav Khorev\nPhone: +79260492730\nEmail: mephi1984@gmail.com\n\nTranslation to Chinese made by Little Fox Lilia\nPhone: +8615756011926\n Email:lilialoo926@mail.ru
+Bashguide (c) 2015\n\nApplication owner: ГУП «Китап»\nPhone: +73472238838\nhttp://kitap-ufa.ru/\n\nApplication is made by Vladislav Khorev\nPhone: +79260492730\nEmail: mephi1984@gmail.com\n\nTranslation to Chinese made by Little Fox Lilia\nPhone: +8615756011926\nEmail:lilialoo926@mail.ru
Having problems with application? Click here to call support.
@@ -87,6 +87,10 @@
Tap and hold address to copy it to clipboard.
+Category is loading...
+
+Category is loaded
+
diff --git a/android/src/fishrungames/bashgid/ArticleFragment.java b/android/src/fishrungames/bashgid/ArticleFragment.java
index cf8746c..e1b2755 100644
--- a/android/src/fishrungames/bashgid/ArticleFragment.java
+++ b/android/src/fishrungames/bashgid/ArticleFragment.java
@@ -342,11 +342,11 @@ public class ArticleFragment extends Fragment
if (article.type == ArticleManager.ARTICLE_TYPE_NEWS)
{
- textView.setTextSize(32);
+ textView.setTextSize(getResources().getDimension(R.dimen.xlarge_text_size));
}
else
{
- textView.setTextSize(64);
+ textView.setTextSize(getResources().getDimension(R.dimen.xxlarge_text_size));
}
textView.setTypeface(null, Typeface.BOLD);
@@ -359,7 +359,7 @@ public class ArticleFragment extends Fragment
textView.setText(articleLayout.get(position).value);
- textView.setTextSize(24);
+ textView.setTextSize(getResources().getDimension(R.dimen.article_content_text_size));
textView.setTypeface(null, Typeface.NORMAL);
textView.setGravity(Gravity.LEFT);
diff --git a/android/src/fishrungames/bashgid/CatalogFragment.java b/android/src/fishrungames/bashgid/CatalogFragment.java
index 3b01c38..2e19ea5 100644
--- a/android/src/fishrungames/bashgid/CatalogFragment.java
+++ b/android/src/fishrungames/bashgid/CatalogFragment.java
@@ -147,8 +147,17 @@ public class CatalogFragment extends Fragment
hListView.setAdapter(new MainPageHListViewAdapters.JournalElementAdapter(getActivity(), journalList.get(position)));
textView.setText(journalList.get(position).title);
- descriptionTextView.setText(journalList.get(position).description);
+ if (journalList.get(position).description.length() > 0)
+ {
+ descriptionTextView.setText(journalList.get(position).description);
+
+ descriptionTextView.setVisibility(View.VISIBLE);
+ }
+ else
+ {
+ descriptionTextView.setVisibility(View.GONE);
+ }
button.setText(R.string.see_all);
diff --git a/android/src/fishrungames/bashgid/JournalFragment.java b/android/src/fishrungames/bashgid/JournalFragment.java
index 06799e1..14cac1e 100644
--- a/android/src/fishrungames/bashgid/JournalFragment.java
+++ b/android/src/fishrungames/bashgid/JournalFragment.java
@@ -32,6 +32,7 @@ public class JournalFragment extends Fragment
ListAdapter listAdapter;
ProgressBar progressBar;
+ TextView headerTextView;
DatabaseGetJournalTask databaseGetJournalTask = null;
@@ -77,10 +78,15 @@ public class JournalFragment extends Fragment
ListView listView = (ListView) rootView.findViewById(R.id.listView);
+
View header = inflater.inflate(R.layout.journal_page_header, null);
+
+ headerTextView = (TextView)header.findViewById(R.id.headerTextView);
+
listView.addHeaderView(header);
-
+
+
listAdapter = new ListAdapter(getActivity());
@@ -91,23 +97,24 @@ public class JournalFragment extends Fragment
@Override
public void onItemClick(AdapterView> parent, View view, int position, long id)
{
+ /*
+ if (journal.geoCategory == 1)
+ {
+ position = position - 1; // because there is header for geo objects
+ }*/
+
+
if (position == 0)
{
+ if (journal.geoCategory == 1)
+ {
MainActivity.getInstance().OpenMapScreen(journalName);
+ }
}
else
{
- /*if (journalName.equals("news"))
- {
- MainActivity.getInstance().OpenNewsRecordScreen(journal.articleArr.get(position-1).name, MainActivity.TAG_FROM_NEWSLISTFRAGMENT_TO_NEWSRECORDFRAGMENT);
- }
- else
- {
- MainActivity.getInstance().OpenArticleScreen(journal.articleArr.get(position-1).name, MainActivity.TAG_FROM_NEWSLISTFRAGMENT_TO_NEWSRECORDFRAGMENT);
- }*/
- MainActivity.getInstance().OpenArticleScreen(journal.articleArr.get(position-1).name, MainActivity.TAG_FROM_NEWSLISTFRAGMENT_TO_NEWSRECORDFRAGMENT);
-
+ MainActivity.getInstance().OpenArticleScreen(journal.articleArr.get(position-1).name, MainActivity.TAG_TO_MAINFRAGMENT);
}
}
});
@@ -159,6 +166,16 @@ public class JournalFragment extends Fragment
this.journal = journal;
+ if (journal.geoCategory == 1)
+ {
+ headerTextView.setText(R.string.journal_open_map);
+
+ }
+ else
+ {
+ headerTextView.setText(R.string.category_is_loaded);
+ }
+
listAdapter.notifyDataSetChanged();
}
diff --git a/android/src/fishrungames/bashgid/MainActivity.java b/android/src/fishrungames/bashgid/MainActivity.java
index 8190cd0..5747a29 100644
--- a/android/src/fishrungames/bashgid/MainActivity.java
+++ b/android/src/fishrungames/bashgid/MainActivity.java
@@ -1,32 +1,21 @@
package fishrungames.bashgid;
-import java.text.ParseException;
import java.util.ArrayList;
-import java.util.Date;
+
import java.util.Locale;
-import fishrungames.bashgid.core.AlbumManager;
-
-import fishrungames.bashgid.core.AlbumManager.AlbumRecordData;
-import fishrungames.bashgid.core.AlbumManager.AlbumShortData;
-import fishrungames.bashgid.core.ArticleManager;
-
-import fishrungames.bashgid.core.ArticleManager.ArticleRecordData;
-import fishrungames.bashgid.core.BookManager.BookRecord;
import fishrungames.bashgid.core.AlbumManager.AlbumFullData;
+import fishrungames.bashgid.core.AlbumManager.AlbumShortData;
import fishrungames.bashgid.core.ArticleManager.ArticleFullData;
import fishrungames.bashgid.core.ArticleManager.ArticleShortData;
import fishrungames.bashgid.core.ChannelManager.ChannelFullData;
import fishrungames.bashgid.core.DatabaseDownloadTask;
-import fishrungames.bashgid.core.HtmlDownloadManager.TextFileRecord;
+
import fishrungames.bashgid.core.JournalManager.JournalRecordData;
import fishrungames.bashgid.core.JournalManager.JournalSemiFullData;
import fishrungames.bashgid.core.NewsDownloadTask;
-import fishrungames.bashgid.core.TranslationManager.TranslationRecordData;
-import fishrungames.bashgid.core.PhotoManager.PhotoRecordData;
-import fishrungames.bashgid.core.VideoManager;
import fishrungames.bashgid.core.VideoManager.VideoRecordData;
import fishrungames.bashgid.core.db.AlbumDataSource;
import fishrungames.bashgid.core.db.ArticleDataSource;
@@ -44,6 +33,7 @@ import fishrungames.networkutils.ImageManager;
import android.support.v7.app.ActionBarActivity;
import android.support.v4.app.Fragment;
+
import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.Configuration;
@@ -52,9 +42,16 @@ import android.os.Handler;
import android.os.Looper;
import android.os.Message;
+//import android.support.v4.view.MenuCompat;
+//import android.support.v4.view.MenuItemCompat;
+
+
+
+
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
+
import android.view.View;
import android.view.inputmethod.InputMethodManager;
@@ -64,9 +61,7 @@ public class MainActivity extends ActionBarActivity implements NavigationDrawerF
{
public static final String TAG_FROM_MAINFRAGMENT_TO_NEWSRECORDFRAGMENT = "TAG_FROM_MAINFRAGMENT_TO_NEWSRECORDFRAGMENT";
- public static final String TAG_FROM_NEWSLISTFRAGMENT_TO_NEWSRECORDFRAGMENT = "TAG_FROM_NEWSLISTFRAGMENT_TO_NEWSRECORDFRAGMENT";
public static final String TAG_FROM_SEARCHFRAGMENT_TO_NEWSRECORDFRAGMENT = "TAG_FROM_SEARCHFRAGMENT_TO_NEWSRECORDFRAGMENT";
- public static final String TAG_FROM_BOOKSFRAGMENT_TO_BOOKRECORDFRAGMENT = "TAG_FROM_BOOKSFRAGMENT_TO_BOOKRECORDFRAGMENT";
public static final String TAG_FROM_VIDEOLISTFRAGMENT_TO_VIDEORECORDFRAGMENT = "TAG_FROM_VIDEOLISTFRAGMENT_TO_VIDEORECORDFRAGMENT";
public static final String TAG_FROM_PHOTOLISTFRAGMENT_TO_PHOTOFRAGMENT = "TAG_FROM_PHOTOLISTFRAGMENT_TO_PHOTOFRAGMENT";
@@ -75,16 +70,12 @@ public class MainActivity extends ActionBarActivity implements NavigationDrawerF
public static final String TAG_FROM_CATALOGFRAGMENT_TO_ARTICLEFRAGMENT = "TAG_FROM_CATALOGFRAGMENT_TO_ARTICLEFRAGMENT";
public static final String TAG_FROM_CATALOGFRAGMENT_TO_JOURNALFRAGMENT = "TAG_FROM_CATALOGFRAGMENT_TO_JOURNALFRAGMENT";
-
-
-
-
+
public static final String TAG_TO_WELCOMEFRAGMENT = "WelcomeFragment";
public static final String TAG_TO_SEARCHFRAGMENT = "SearchFragment";
public static final String TAG_TO_MAINFRAGMENT = "MainFragment";
public static final String TAG_TO_MAPFRAGMENT = "MapFragment";
-
public static final String PREFS_MAIN = "PREFS_MAIN";
public static final int NEWS_DOWNLOADER_STATE_UPDATE = 10;
@@ -126,8 +117,7 @@ public class MainActivity extends ActionBarActivity implements NavigationDrawerF
MainPageFragment mainPageFragment = null;
NewsListFragment newsListFragment = null;
- NewsRecordFragment newsRecordFragment = null;
-
+
AlbumListFragment albumListFragment = null;
PhotoAlbumFragment photoAlbumFragment = null;
PhotoFragment photoFragment = null;
@@ -416,7 +406,6 @@ public class MainActivity extends ActionBarActivity implements NavigationDrawerF
{
mainPageFragment = null;
newsListFragment = null;
- newsRecordFragment = null;
albumListFragment = null;
photoAlbumFragment = null;
@@ -509,11 +498,6 @@ public class MainActivity extends ActionBarActivity implements NavigationDrawerF
articleFragment.SetArticle(article);
}
- if (newsRecordFragment != null)
- {
- newsRecordFragment.SetArticle(article);
- }
-
if (mapHolderFragment != null)
{
mapHolderFragment.SetArticle(article);
@@ -620,12 +604,6 @@ public class MainActivity extends ActionBarActivity implements NavigationDrawerF
return;
}
- if (newsListFragment != null || newsRecordFragment != null)
- {
- OpenSearchScreen("news", "News");
- return;
- }
-
if (journalFragment != null)
{
if (journalFragment.journal == null)
@@ -639,6 +617,13 @@ public class MainActivity extends ActionBarActivity implements NavigationDrawerF
return;
}
+ if (newsListFragment != null)
+ {
+ String newsTitle = getResources().getString(R.string.news_header);
+ OpenSearchScreen("news", newsTitle);
+ return;
+ }
+
OpenSearchScreen();
}
@@ -782,29 +767,6 @@ public class MainActivity extends ActionBarActivity implements NavigationDrawerF
mNavigationDrawerFragment.EnableDrawer();
}
- /*
- public void OpenSearchScreen()
- {
- ClearAllFragmentLinks();
-
- SearchFragment
-
- getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new SearchFragment(), TAG_TO_SEARCHFRAGMENT)
- .commit();
-
- mNavigationDrawerFragment.EnableDrawer();
-
- }*/
-
- public void OpenLinkContentScreen(TextFileRecord contentRecord)
- {
- ClearAllFragmentLinks();
-
- getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new LinkContentFragment(contentRecord), TAG_TO_MAINFRAGMENT).commit();
-
- mNavigationDrawerFragment.EnableDrawer();
- }
-
public void OpenMapScreen(String filter)
{
ClearAllFragmentLinks();
@@ -836,14 +798,7 @@ public class MainActivity extends ActionBarActivity implements NavigationDrawerF
mNavigationDrawerFragment.EnableDrawer();
}
- public void OpenStreetViewScreen(double lat, double lon)
- {
- ClearAllFragmentLinks();
- getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new StreetViewHolderFragment(lat, lon), TAG_TO_MAPFRAGMENT).commit();
-
- mNavigationDrawerFragment.EnableDrawer();
- }
public void OpenPhotoAlbumListScreen()
{
@@ -890,24 +845,6 @@ public class MainActivity extends ActionBarActivity implements NavigationDrawerF
mNavigationDrawerFragment.EnableDrawer();
}
- public void OpenNewsRecordScreen(String articleName, String tag)
- {
- // Xperimental -- addToBackStack provoke error "Class not found". Need
- // to resolve somehow!
- // getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container,
- // new NewsRecordFragment(newsRecord)).addToBackStack(null).commit();
-
- // I added workaround:
-
- ClearAllFragmentLinks();
-
- newsRecordFragment = new NewsRecordFragment(articleName);
-
- getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, newsRecordFragment, tag).commit();
-
- mNavigationDrawerFragment.EnableDrawer();
-
- }
public void OpenArticleScreen(String articleName, String tag)
{
@@ -921,44 +858,7 @@ public class MainActivity extends ActionBarActivity implements NavigationDrawerF
}
- public void OpenHtmlViewerScreen(String url)
- {
- ClearAllFragmentLinks();
- HtmlViewerFragment htmlViewerFragment = new HtmlViewerFragment();
- htmlViewerFragment.url = url;
- getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, htmlViewerFragment, TAG_TO_MAINFRAGMENT).commit();
-
- mNavigationDrawerFragment.EnableDrawer();
- }
-
- public void OpenBooksScreen()
- {
- ClearAllFragmentLinks();
-
- getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new BooksFragment(), TAG_TO_MAINFRAGMENT).commit();
-
- mNavigationDrawerFragment.EnableDrawer();
-
- }
-
- public void OpenBookRecordScreen(BookRecord bookRecord, String tag)
- {
- // Xperimental -- addToBackStack provoke error "Class not found". Need
- // to resolve somehow!
- // getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container,
- // new NewsRecordFragment(newsRecord)).addToBackStack(null).commit();
-
- // I added workaround:
- ClearAllFragmentLinks();
-
- BookRecordFragment bookRecordFragment = new BookRecordFragment(bookRecord);
-
- getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, bookRecordFragment, tag).commit();
-
- mNavigationDrawerFragment.EnableDrawer();
- }
-
public void OpenVideoListScreen(String channelName)
{
ClearAllFragmentLinks();
@@ -1040,10 +940,6 @@ public class MainActivity extends ActionBarActivity implements NavigationDrawerF
return true;
}
- if (id == R.id.action_settings)
- {
- return true;
- }
return super.onOptionsItemSelected(item);
}
@@ -1071,16 +967,17 @@ public class MainActivity extends ActionBarActivity implements NavigationDrawerF
{
OpenPhotoAlbumListScreen();
}
+ /*
else if (position == 7)
{
//OpenBooksScreen();
OpenJournalScreen("books", MainActivity.TAG_TO_MAINFRAGMENT);
- }
- else if (position == 8)
+ }*/
+ else if (position == 7)
{
OpenJournalScreen("investor", MainActivity.TAG_TO_MAINFRAGMENT);
}
- else if (position == 9)
+ else if (position == 8)
{
OpenSettingsScreen();
}
@@ -1097,20 +994,6 @@ public class MainActivity extends ActionBarActivity implements NavigationDrawerF
return;
}
- if (getSupportFragmentManager().findFragmentByTag(TAG_FROM_NEWSLISTFRAGMENT_TO_NEWSRECORDFRAGMENT) != null)
- {
- OpenNewsScreen();
-
- return;
- }
-
- if (getSupportFragmentManager().findFragmentByTag(TAG_FROM_BOOKSFRAGMENT_TO_BOOKRECORDFRAGMENT) != null)
- {
- OpenBooksScreen();
-
- return;
- }
-
if (getSupportFragmentManager().findFragmentByTag(TAG_FROM_VIDEOLISTFRAGMENT_TO_VIDEORECORDFRAGMENT) != null)
{
OpenVideoListScreen("main");
diff --git a/android/src/fishrungames/bashgid/MainPageFragment.java b/android/src/fishrungames/bashgid/MainPageFragment.java
index 29b649e..b6a702e 100644
--- a/android/src/fishrungames/bashgid/MainPageFragment.java
+++ b/android/src/fishrungames/bashgid/MainPageFragment.java
@@ -301,14 +301,23 @@ public class MainPageFragment extends Fragment {
ImageButton imageButton = (ImageButton) view.findViewById(R.id.imageButton);
-
HListView hListView = (HListView) view.findViewById(R.id.hListView);
hListView.setAdapter(new MainPageHListViewAdapters.JournalElementAdapter(getActivity(), journalList.get(position)));
textView.setText(journalList.get(position).title);
- descriptionTextView.setText(journalList.get(position).description);
+ if (journalList.get(position).description.length() > 0)
+ {
+ descriptionTextView.setText(journalList.get(position).description);
+
+ descriptionTextView.setVisibility(View.VISIBLE);
+ }
+ else
+ {
+ descriptionTextView.setVisibility(View.GONE);
+ }
+
button.setText(R.string.see_all);
diff --git a/android/src/fishrungames/bashgid/MainPageHListViewAdapters.java b/android/src/fishrungames/bashgid/MainPageHListViewAdapters.java
index 75b6154..74b9b0e 100644
--- a/android/src/fishrungames/bashgid/MainPageHListViewAdapters.java
+++ b/android/src/fishrungames/bashgid/MainPageHListViewAdapters.java
@@ -156,6 +156,7 @@ public static class JournalElementAdapter extends BaseAdapter {
}
+/*
public static class SimpleElementAdapter extends BaseAdapter {
private Context mContext;
@@ -211,8 +212,9 @@ public static class JournalElementAdapter extends BaseAdapter {
return view;
}
- }
+ }*/
+/*
public static class DarkenElementAdapter extends BaseAdapter {
@@ -272,27 +274,9 @@ public static class DarkenElementAdapter extends BaseAdapter {
return view;
}
- }
+ }*/
-public static class ContentButtonOnClickListener implements OnClickListener
-{
-
- TextFileRecord contentRecord;
-
- public ContentButtonOnClickListener(TextFileRecord contentRecord)
- {
- this.contentRecord = contentRecord;
- }
-
- @Override
- public void onClick(View v)
- {
- //MainActivity.getInstance().OpenHtmlViewerScreen(url);
- MainActivity.getInstance().OpenLinkContentScreen(contentRecord);
- }
-
-}
}
diff --git a/android/src/fishrungames/bashgid/NavigationDrawerFragment.java b/android/src/fishrungames/bashgid/NavigationDrawerFragment.java
index 7fc7681..53c44c0 100644
--- a/android/src/fishrungames/bashgid/NavigationDrawerFragment.java
+++ b/android/src/fishrungames/bashgid/NavigationDrawerFragment.java
@@ -2,13 +2,13 @@ package fishrungames.bashgid;
import android.support.v7.app.ActionBarActivity;
-import android.app.Activity;
import android.support.v7.app.ActionBar;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
+import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.Configuration;
@@ -27,7 +27,6 @@ import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
-import android.widget.Toast;
/**
* Fragment used for managing interactions for and presentation of a navigation drawer.
@@ -277,11 +276,6 @@ public class NavigationDrawerFragment extends Fragment {
return true;
}
- if (item.getItemId() == R.id.action_settings) {
- Toast.makeText(getActivity(), "Example action.", Toast.LENGTH_SHORT).show();
- return true;
- }
-
return super.onOptionsItemSelected(item);
}
@@ -324,7 +318,7 @@ public class NavigationDrawerFragment extends Fragment {
R.string.drawer_map,
R.string.drawer_video,
R.string.drawer_photo_gallery,
- R.string.drawer_books,
+ //R.string.drawer_books,
R.string.drawer_for_investor,
R.string.drawer_settings
};
@@ -337,7 +331,7 @@ public class NavigationDrawerFragment extends Fragment {
R.drawable.drawer_pushpin,
R.drawable.drawer_tv,
R.drawable.drawer_photography,
- R.drawable.drawer_books,
+ //R.drawable.drawer_books,
R.drawable.drawer_id,
R.drawable.drawer_gear
};
diff --git a/android/src/fishrungames/bashgid/NewsListFragment.java b/android/src/fishrungames/bashgid/NewsListFragment.java
index 04cca70..bbf942a 100644
--- a/android/src/fishrungames/bashgid/NewsListFragment.java
+++ b/android/src/fishrungames/bashgid/NewsListFragment.java
@@ -90,9 +90,7 @@ public class NewsListFragment extends Fragment
}
else if (position > 0)
{
- MainActivity.getInstance().OpenArticleScreen(journal.articleArr.get(position-1).name, MainActivity.TAG_FROM_NEWSLISTFRAGMENT_TO_NEWSRECORDFRAGMENT);
-
- //MainActivity.getInstance().OpenNewsRecordScreen(journal.articleArr.get(position - 1).name, MainActivity.TAG_FROM_NEWSLISTFRAGMENT_TO_NEWSRECORDFRAGMENT);
+ MainActivity.getInstance().OpenArticleScreen(journal.articleArr.get(position-1).name, MainActivity.TAG_TO_MAINFRAGMENT);
}
}
@@ -215,7 +213,7 @@ public class NewsListFragment extends Fragment
View view;
if (convertView == null) { // if it's not recycled, initialize some attributes
LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
- view = inflater.inflate(R.layout.news_list_element, null);
+ view = inflater.inflate(R.layout.news_page_list_element, null);
} else {
diff --git a/android/src/fishrungames/bashgid/OsmMapHolderFragment.java b/android/src/fishrungames/bashgid/OsmMapHolderFragment.java
index 6f1ce54..6052ad1 100644
--- a/android/src/fishrungames/bashgid/OsmMapHolderFragment.java
+++ b/android/src/fishrungames/bashgid/OsmMapHolderFragment.java
@@ -300,6 +300,8 @@ public class OsmMapHolderFragment extends Fragment
int filterType;
Spinner spinner;
+ MapView mapView;
+ TextView titleTextView;
public OsmMapHolderFragment()
{
@@ -345,8 +347,7 @@ public class OsmMapHolderFragment extends Fragment
outState.putInt("filterType", filterType);
}
- MapView mapView;
- TextView textView;
+
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
@@ -360,9 +361,7 @@ public class OsmMapHolderFragment extends Fragment
View rootView = inflater.inflate(R.layout.fragment_osm_map_page, container, false);
- textView = (TextView) rootView.findViewById(R.id.addressTextView);
-
-
+ titleTextView = (TextView) rootView.findViewById(R.id.titleTextView);
mapView = (MapView) rootView.findViewById(R.id.mapview);
@@ -403,7 +402,7 @@ public class OsmMapHolderFragment extends Fragment
filterType = 0;
filter = availableGeoJournals.get(position).name;
- textView.setText(R.string.map_is_loading);
+ titleTextView.setText(R.string.map_is_loading);
RestoreJournalOrArticle();
}
}
@@ -421,13 +420,13 @@ public class OsmMapHolderFragment extends Fragment
if ((filterType == 0 && journal == null) || (filterType == 1 && article == null))
{
- textView.setText(R.string.map_is_loading);
+ titleTextView.setText(R.string.map_is_loading);
RestoreJournalOrArticle();
} else
{
- textView.setText(R.string.map_is_loaded);
+ titleTextView.setText(R.string.map_is_loaded);
RestoreGeoJournals();
}
@@ -495,7 +494,7 @@ public class OsmMapHolderFragment extends Fragment
{
filterType = 0;
- textView.setText(R.string.map_is_loaded);
+ titleTextView.setText(R.string.map_is_loaded);
this.journal = journal;
@@ -509,7 +508,7 @@ public class OsmMapHolderFragment extends Fragment
{
filterType = 1;
- textView.setText(R.string.map_is_loaded);
+ titleTextView.setText(R.string.map_is_loaded);
this.article = article;
diff --git a/android/src/fishrungames/bashgid/SearchFragment.java b/android/src/fishrungames/bashgid/SearchFragment.java
index 6fc04d0..4138e5f 100644
--- a/android/src/fishrungames/bashgid/SearchFragment.java
+++ b/android/src/fishrungames/bashgid/SearchFragment.java
@@ -26,12 +26,15 @@ import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
+import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;
+import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
+import android.widget.AdapterView.OnItemClickListener;
public class SearchFragment extends Fragment
{
@@ -140,6 +143,15 @@ public class SearchFragment extends Fragment
listAdapter = new ListAdapter(getActivity());
listView.setAdapter(listAdapter);
+
+ listView.setOnItemClickListener(new OnItemClickListener(){
+
+ @Override
+ public void onItemClick(AdapterView> parent, View view, int position, long id)
+ {
+ MainActivity.getInstance().OpenArticleScreen(searchResultArr.get(position-1).name, MainActivity.TAG_TO_MAINFRAGMENT);
+ }
+ });
CallUpdateNews();
@@ -185,6 +197,7 @@ public class SearchFragment extends Fragment
public View getView(int position, View convertView, ViewGroup parent) {
+ /*
View view;
if (convertView == null) { // if it's not recycled, initialize some attributes
LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
@@ -212,6 +225,36 @@ public class SearchFragment extends Fragment
imageButton.setOnClickListener(new ButtonOnClickListener(searchResultArr.get(position).name, searchResultArr.get(position).type));
+ return view;*/
+
+ View view;
+ if (convertView == null) { // if it's not recycled, initialize some attributes
+ LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
+ view = inflater.inflate(R.layout.journal_element, null);
+
+
+ } else {
+ view = convertView;
+ }
+
+ TextView titleTextView = (TextView)view.findViewById(R.id.titleTextView);
+
+ titleTextView.setText(searchResultArr.get(position).title);
+
+ TextView dateTextView = (TextView)view.findViewById(R.id.dateTextView);
+
+ dateTextView.setText(NewsDataSource.iso8601Format.format(searchResultArr.get(position).dateTime));
+
+ ImageView imageView = (ImageView) view.findViewById(R.id.imageView);
+
+ if (searchResultArr.get(position).previewImageUrl != null)
+ {
+ ImageManager.getInstance().ApplyImageToImageView(imageView, searchResultArr.get(position).previewImageUrl);
+ }
+ else
+ {
+ imageView.setImageResource(R.drawable.transparent);
+ }
return view;
}
@@ -252,6 +295,7 @@ public class SearchFragment extends Fragment
}
+ /*
public static class ButtonOnClickListener implements OnClickListener
{
@@ -269,18 +313,14 @@ public class SearchFragment extends Fragment
@Override
public void onClick(View v)
{
- if (articleType == ArticleManager.ARTICLE_TYPE_NEWS)
- {
- MainActivity.getInstance().OpenNewsRecordScreen(articleName, MainActivity.TAG_TO_MAINFRAGMENT);
- }
- else
- {
- MainActivity.getInstance().OpenArticleScreen(articleName, MainActivity.TAG_TO_MAINFRAGMENT);
- }
+
+ MainActivity.getInstance().OpenArticleScreen(articleName, MainActivity.TAG_TO_MAINFRAGMENT);
+
+
}
- }
+ }*/
}
diff --git a/android/src/fishrungames/bashgid/core/AlbumManager.java b/android/src/fishrungames/bashgid/core/AlbumManager.java
index de8f8ab..2bd7876 100644
--- a/android/src/fishrungames/bashgid/core/AlbumManager.java
+++ b/android/src/fishrungames/bashgid/core/AlbumManager.java
@@ -77,7 +77,7 @@ public class AlbumManager
public static AlbumFullData CreateEmptyAlbum()
{
- AlbumFullData result = new AlbumFullData(new AlbumRecordData("", "", "", 0));
+ AlbumFullData result = new AlbumFullData(new AlbumRecordData("", "", "", 1));
return result;
}
@@ -94,7 +94,7 @@ public class AlbumManager
{
if (!MainActivity.getInstance().albumDataSource.IsAlbumAlreadyExist(albumName))
{
- MainActivity.getInstance().albumDataSource.CreateNewAlbum(new AlbumRecordData(albumName, albumName, "", 0));
+ MainActivity.getInstance().albumDataSource.CreateNewAlbum(new AlbumRecordData(albumName, albumName, "", 1));
}
MainActivity.getInstance().albumDataSource.AddPhotoToAlbum(imageUrl, albumName);
@@ -121,7 +121,7 @@ public class AlbumManager
{
if (!MainActivity.getInstance().channelDataSource.IsChannelAlreadyExist(channelName))
{
- MainActivity.getInstance().channelDataSource.CreateNewChannel(new ChannelRecordData(channelName, channelName, "", 0));
+ MainActivity.getInstance().channelDataSource.CreateNewChannel(new ChannelRecordData(channelName, channelName, "", 1));
}
MainActivity.getInstance().channelDataSource.AddVideoToChannel(videoUrl, channelName);
@@ -146,7 +146,7 @@ public class AlbumManager
{
if (!MainActivity.getInstance().journalDataSource.IsJournalAlreadyExist(journalName))
{
- MainActivity.getInstance().journalDataSource.CreateNewJournal(new JournalRecordData(journalName, journalName, "", 0, 0, 0));
+ MainActivity.getInstance().journalDataSource.CreateNewJournal(new JournalRecordData(journalName, journalName, "", 1, 0, 0));
}
MainActivity.getInstance().journalDataSource.AddArticleToJournal(articleName, journalName);