I am using Android Toggle library by Angad Singh, to create a LabeledSwitch programmatically, everything works but I am not being able to color the border.
LabeledSwitch switch = new LabeledSwitch(context);
switch.setLayoutParams(lp);
switch.setColorDisabled(context.getResources().getColor(R.color.colorDisabled));
switch.setColorOn(context.getResources().getColor(R.color.colorPrimary));
switch.setLabelOn("Yep!");
switch.setLabelOff("Nope!");
The xml property is app:colorBorder
, if I write this property I get this message:
'colorBorder' has private access in 'com.github.angads25.toogle.LabeledSwitch'
How to change LabeledSwitch border color programmatically? (not xml)