Skip to content

Commit

Permalink
Fixed Round corner and colors
Browse files Browse the repository at this point in the history
  • Loading branch information
brodeurlv committed Jul 12, 2020
1 parent 888cdb5 commit 9028a86
Showing 1 changed file with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,6 @@ public void bindView(View view, Context context, Cursor cursor) {

float measure = cursor.getFloat(cursor.getColumnIndex(DAOBodyMeasure.MEASURE));
Unit unit = Unit.fromInteger(cursor.getInt(cursor.getColumnIndex(DAOBodyMeasure.UNIT)));
/*switch (unit) {
case INCH:
measure = SizeUnit.CmToInch(measure);
break;
case LBS:
measure = UnitConverter.KgtoLbs(measure);
break;
case STONES:
measure = UnitConverter.KgtoStones(measure);
break;
}*/

String t2Str = String.format("%.1f", measure) + unit.toString();

Expand All @@ -74,9 +63,9 @@ public void bindView(View view, Context context, Cursor cursor) {

int mFirstColorOdd = 0;
if (cursor.getPosition() % 2 == mFirstColorOdd) {
cdView.setBackgroundColor(context.getResources().getColor(R.color.record_background_even));
cdView.setCardBackgroundColor(context.getResources().getColor(R.color.record_background_even));
} else {
cdView.setBackgroundColor(context.getResources().getColor(R.color.background));
cdView.setCardBackgroundColor(context.getResources().getColor(R.color.record_background_odd));
}

ImageView editImg = view.findViewById(R.id.editButton);
Expand Down

0 comments on commit 9028a86

Please sign in to comment.