Small changes to ScoreView

This commit is contained in:
2016-04-30 17:14:44 -04:00
parent ae5dd700f3
commit dbca3238f6
2 changed files with 5 additions and 4 deletions

View File

@@ -170,9 +170,10 @@ public class HabitScoreView extends ScrollableDataView implements HabitDataView
columnHeight = 8 * baseSize;
float minStrokeWidth = UIHelper.dpToPixels(getContext(), 1);
pGraph.setTextSize(baseSize * 0.5f);
pGraph.setStrokeWidth(baseSize * 0.1f);
pGrid.setStrokeWidth(baseSize * 0.025f);
pGrid.setStrokeWidth(Math.min(minStrokeWidth, baseSize * 0.05f));
if(isTransparencyEnabled)
initCache(width, height);
@@ -266,7 +267,7 @@ public class HabitScoreView extends ScrollableDataView implements HabitDataView
rect.set(0, 0, baseSize, baseSize);
rect.offset(k * columnWidth + (columnWidth - baseSize) / 2,
paddingTop + columnHeight - height - columnWidth / 2);
paddingTop + columnHeight - height - baseSize / 2);
if (!prevRect.isEmpty())
{