florent37 / ExpansionPanel

Android - Expansion panels contain creation flows and allow lightweight editing of an element.
https://material.io/guidelines/components/expansion-panels.html
Apache License 2.0
1.98k stars 239 forks source link

How to add different label name in SampleActivityProgrammatically? #23

Closed trionohidayat closed 6 years ago

trionohidayat commented 6 years ago

I know how to add labels in SampleActivityProgrammatically.Java but I do not know how to change the label name. I hope you can help me, sir.

activityprogrammatically1 activityprogrammatically2

adriantache commented 6 years ago

Just give the label TextView an ID, find that view and setText on it.

florent37 commented 6 years ago

you just have to use a custom view inside the header, it works like a linear layout or relativelayout