Fix depth contours ui

This commit is contained in:
Alexey Kulish 2017-03-20 22:41:20 +03:00
parent c6bbecca94
commit 973b716ada
3 changed files with 4 additions and 1 deletions

View file

@ -27,6 +27,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_weight="1" android:layout_weight="1"
android:paddingTop="6dp"
android:paddingBottom="6dp"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView

View file

@ -9,6 +9,7 @@
3. All your modified/created strings are in the top of the file (to make easier find what\'s translated). 3. All your modified/created strings are in the top of the file (to make easier find what\'s translated).
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
--> -->
<string name="depth_contour_descr">Set of maps allows you to see sea depth contour lines.</string>
<string name="sea_depth_thanks">Thank you for purchasing sea depth contours!</string> <string name="sea_depth_thanks">Thank you for purchasing sea depth contours!</string>
<string name="index_item_depth_contours_osmand_ext">Depth contours</string> <string name="index_item_depth_contours_osmand_ext">Depth contours</string>
<string name="index_item_depth_points_southern_hemisphere">Depth points southern hemisphere</string> <string name="index_item_depth_points_southern_hemisphere">Depth points southern hemisphere</string>

View file

@ -179,7 +179,7 @@ public class ItemViewHolder {
progressBar.setVisibility(View.GONE); progressBar.setVisibility(View.GONE);
descrTextView.setVisibility(View.VISIBLE); descrTextView.setVisibility(View.VISIBLE);
if (indexItem.getType() == DownloadActivityType.DEPTH_CONTOUR_FILE && !depthContoursPurchased) { if (indexItem.getType() == DownloadActivityType.DEPTH_CONTOUR_FILE && !depthContoursPurchased) {
descrTextView.setVisibility(View.GONE); descrTextView.setText(context.getString(R.string.depth_contour_descr));
} else if ((indexItem.getType() == DownloadActivityType.SRTM_COUNTRY_FILE || } else if ((indexItem.getType() == DownloadActivityType.SRTM_COUNTRY_FILE ||
indexItem.getType() == DownloadActivityType.HILLSHADE_FILE) && srtmDisabled) { indexItem.getType() == DownloadActivityType.HILLSHADE_FILE) && srtmDisabled) {
if(showTypeInName) { if(showTypeInName) {