I’m working on a custom numberpicker and I have a button with a ‘+’ and ‘-‘ sign.
At the moment I just have this code to create the button.
increment = new Button(context);
increment.setTextSize(25);
increment.setText("+");
Now, i want to add the minimum and maximum value to be shown on the button like this.

How can I achieve this?
So I need to center the max label, and give it a different size as the plus sign.
Any help would be greatly appreciated! 🙂
I don’t know whether this is what your need or not,,
But in your layout xml file,
Or using code,