syedowaisali / crystal-range-seekbar

537 stars 164 forks source link

Add method for set thumbs radius #44

Closed comm1x closed 6 years ago

comm1x commented 7 years ago

Default size of thumbs is too big (comparing with native elements). But I do not found method for changing radius and forced to override CrystalRangeSeekbar:

public class PatchedCrystalRangeSeekbar extends CrystalRangeSeekbar {
    private final int mThumbsSize = 30;

    // ... override constructors

    @Override
    protected float getThumbWidth() {
        return mThumbsSize;
    }

    @Override
    protected float getThumbHeight() {
        return mThumbsSize;
    }
}

It will be great to create method or style for changing default radius.

syedowaisali commented 6 years ago

available in future release