mmoamenn / LuckyWheel_Android

A custom component that displays a lucky wheel. it ⁠ features easy customize of colors, addition of items and it's very trivial to integrate in your application.
MIT License
128 stars 55 forks source link

How to Change The Text Size #15

Closed rahat14 closed 3 years ago

rahat14 commented 4 years ago

i am failing to change the text size

KidusMT commented 3 years ago

HI @rahat14 if you want a quick work around: You can go into WheelView class and edit the Init:

private void initComponents() {
        //arc paint object
        archPaint = new Paint();
        archPaint.setAntiAlias(true);
        archPaint.setDither(true);
        //text paint object
        textPaint = new Paint();
        textPaint.setColor(Color.WHITE);
        textPaint.setAntiAlias(true);
        textPaint.setDither(true);
        textPaint.setTextSize(50);
        //rect rang of the arc
        range = new RectF(padding, padding, padding + radius, padding + radius);
    }

change textPaint.setTextSize(30); to textPaint.setTextSize(50); that will change the text size.

rahat14 commented 3 years ago

thnx will try