diff --git a/OsmAnd/assets/fonts/Roboto-Medium.ttf b/OsmAnd/assets/fonts/Roboto-Medium.ttf
new file mode 100644
index 0000000000..a3c1a1f170
Binary files /dev/null and b/OsmAnd/assets/fonts/Roboto-Medium.ttf differ
diff --git a/OsmAnd/res/layout/dash_fav_list.xml b/OsmAnd/res/layout/dash_fav_list.xml
index c657988f71..d477e14185 100644
--- a/OsmAnd/res/layout/dash_fav_list.xml
+++ b/OsmAnd/res/layout/dash_fav_list.xml
@@ -3,6 +3,8 @@
@@ -15,13 +15,15 @@
android:layout_height="wrap_content"
android:background="@drawable/bg_cardui"
android:layout_marginBottom="6dp">
-
diff --git a/OsmAnd/res/values/colors.xml b/OsmAnd/res/values/colors.xml
index bdb86e6992..fdcfe1fa3b 100644
--- a/OsmAnd/res/values/colors.xml
+++ b/OsmAnd/res/values/colors.xml
@@ -1,5 +1,6 @@
+ #f0f0f0
#212121
#536DFE
#cd2c33
diff --git a/OsmAnd/src/net/osmand/plus/activities/DashboardActivity.java b/OsmAnd/src/net/osmand/plus/activities/DashboardActivity.java
index a19dcbac3e..a7a13c98e1 100644
--- a/OsmAnd/src/net/osmand/plus/activities/DashboardActivity.java
+++ b/OsmAnd/src/net/osmand/plus/activities/DashboardActivity.java
@@ -9,6 +9,7 @@ import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.text.Spannable;
import android.text.style.ForegroundColorSpan;
+import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@@ -45,7 +46,16 @@ public class DashboardActivity extends SherlockFragmentActivity {
setupMapView();
setupButtons();
setupFavorites();
+ setupFonts();
+ }
+ private void setupFonts() {
+ Typeface typeface = Typeface.createFromAsset(getAssets(), "fonts/Roboto-Medium.ttf");
+ ((TextView) findViewById(R.id.search_for)).setTypeface(typeface);
+ ((TextView) findViewById(R.id.map_text)).setTypeface(typeface);
+ ((TextView) findViewById(R.id.fav_text)).setTypeface(typeface);
+ ((Button) findViewById(R.id.show_map)).setTypeface(typeface);
+ ((Button) findViewById(R.id.show_all)).setTypeface(typeface);
}
private void setupFavorites(){
@@ -64,7 +74,6 @@ public class DashboardActivity extends SherlockFragmentActivity {
TextView label = (TextView) view.findViewById(R.id.distance);
ImageView icon = (ImageView) view.findViewById(R.id.icon);
final FavouritePoint model = points.get(i);
- view.setTag(model);
name.setText(model.getName());
icon.setImageDrawable(FavoriteImageDrawable.getOrCreate(DashboardActivity.this, model.getColor()));
LatLon lastKnownMapLocation = getMyApplication().getSettings().getLastKnownMapLocation();
@@ -82,6 +91,11 @@ public class DashboardActivity extends SherlockFragmentActivity {
startActivityForResult(mapIndent, 0);
}
});
+ int height = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 50, getResources().getDisplayMetrics());
+ int margin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 1, getResources().getDisplayMetrics());
+ LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, height);
+ lp.setMargins(0, margin, 0, 0);
+ view.setLayoutParams(lp);
favorites.addView(view);
}
}