For the switch button library I couldn't find the setText method in version 2.1, I am not sure if I am doing something wrong, but I have tried to add it to the example in uploaded.
Yes, it has changed a lot. There is no such method in the github project.
There is a settext method but it needs two charsequences. One for on one for off.
I´ve implemented it but it seems to make no visual difference.
So you mean it was not included in version 2.1? I have tried to set the value for On and Off but it is not defined so I cannot use the method, I assume I misunderstood what you said.