How can realized btn logic?
Hello for everyone! I have 2 TextView in my activity_main.xml First TextView (text) serves as a text, the second TextView (btn) serves as a button. The text include huge text includes 20 lines, but i need to make it look short(3 lines) on the layout. For example: | It some text on 20 lines. It some text on 20 lines. It some text on 20 lines... | The btn which under the first TextView with the name "Read more" should open the text in full size and renamed itself "Read less". When we click again on this btn we need to transform the name of btn from "Read less" to "Read more" and collapse expanded text to 3 lines. All this logic must be executed an unlimited number of times when this button is pressed. So, what i need to write in MainActivity.kt for btn?