ceryle / SegmentedButton

Segmented Control with animation for Android API 12+
Apache License 2.0
363 stars 97 forks source link

Is it possible to change the text programmatically #28

Open BenjaminChrist84 opened 6 years ago

BenjaminChrist84 commented 6 years ago

Nice work,

but i have a problem. I get my text string from a database and i have to change the string while the app is running. Is it possible to change the text from the button while the app is running? setText() doesn't work.

Tanks for help.

RustamIbragimov commented 6 years ago

@BenjaminChrist84 , I also faced this problem. Did you solve it?

BenjaminChrist84 commented 6 years ago

@RustamIbragimov

Hey,

I didn't solved the problem with the current version. I used the older version SegmentedButton:v1.2.2.

hardikJoshi123 commented 6 years ago

Same question, it should allow to set text dynamically on SegmentedButton in latest version of library.

priyanka9879 commented 6 years ago

@BenjaminChrist84 Hi , using this V.1.2.2. I am able to change text pragmatically but not height is not adjustable what to do with that ?

BenjaminChrist84 commented 6 years ago

@priyanka9879 Hi, I'm sorry but i can't help you with this. I only needed to change the text programatically.

priyanka9879 commented 6 years ago

BenjaminChrist84 its okay

Kaushl commented 5 years ago

did we resolve this issue? I am using v2.0.2 and not seeing any way to set text programmatically. How to solve this problem?

sebastianor commented 5 years ago

Any updates in this question ?