0

How can I change the visibility of a button in a fragment, from another fragment, in kotlin?

3rd May 2020, 7:16 AM
Ali
2 Réponses
+ 1
You can use setBackground with the value Color.transparent
3rd May 2020, 9:36 AM
HEUBA BATOMEN Franck Duval
HEUBA BATOMEN Franck Duval - avatar
0
Well, you cannot control one fragment from another but you can put data by using intent put extra and to change visibility u can do view.button.visibility = View.GONE Or view.button.visibility = View.INVISIBLE
29th Jun 2020, 1:45 PM
Ananiya Jemberu
Ananiya Jemberu - avatar