Skip to content

Commit

Permalink
Added divider for trends graph
Browse files Browse the repository at this point in the history
  • Loading branch information
mvarnagiris committed Nov 9, 2014
1 parent 2efadb0 commit 8b7290c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ public TrendsGraphData(Context context, Cursor cursor, Currency mainCurrency, Ba
long totalExpense = 0;
final LineGraphData.Builder builder = new LineGraphData.Builder()
.setColor(context.getResources().getColor(R.color.text_negative))
.setLineWidth(context.getResources().getDimension(R.dimen.divider))
.setDividerDrawable(context.getResources().getDrawable(R.drawable.trends_divider))
.setUseGlobalMinMax(false)
.setSmooth(true)
.setLineWidth(context.getResources().getDimension(R.dimen.divider));
.setSmooth(true);
final Period period = getPeriod(interval);
Interval currentInterval = getFirstInterval(interval, period);
long expense = 0;
Expand Down
8 changes: 8 additions & 0 deletions financius/src/main/res/drawable/trends_divider.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="@color/text_negative" />
<size
android:width="4dp"
android:height="4dp" />
</shape>

0 comments on commit 8b7290c

Please sign in to comment.