How to hide text by button click in android studio in kotlin

how i can make a button press hide the what is written in text view in android studio using kotlin not java

3/11/2018 7:20:24 AM

yousef mohamed

1 Answer

New Answer


I'm a kotlin/android noob myself, but try this: YourTV.SetVisibility(INVISIBLE) inside the onClickListener method of the button edit: https://stackoverflow.com/questions/44315775/visibility-not-working-with-kotlin