package org.nativescript.widgets;

import android.graphics.Paint;
import android.graphics.drawable.ColorDrawable;

/**
 * Created by hhristov on 2/23/17.
 */

public class SegmentedBarColorDrawable extends ColorDrawable {
    public void draw(android.graphics.Canvas canvas) {
        Paint p = new Paint();
        p.setColor(this.getColor());
        p.setStyle(android.graphics.Paint.Style.FILL);
        canvas.drawRect(0, this.getBounds().height() - 15, this.getBounds().width(), this.getBounds().height(), p);
    }
}
@@ -106,16 +106,60 @@
 rawable;
+%0Aimport android.support.annotation.ColorInt;
 %0A%0A/**%0A *
@@ -259,16 +259,105 @@
 wable %7B%0A
+    public SegmentedBarColorDrawable(@ColorInt int color) %7B%0A        super(color);%0A    %7D%0A%0A
     publ

Add construtor that accepts color. (#88)