I want to change Groupview.visibility = View.VISIBLE
to be GroupView.visibility = View.GONE
. How should the code be?
this is my Activity.kt
if (viewModel.inputPosTableArea1.value != "") {
btn_addtable1?.visibility = View.GONE
table2?.visibility = View.VISIBLE
btn_addtable2?.visibility = View.VISIBLE
}
I hope when the add button is "clicked" it will change to something like this:
btn_addtable1.visibility = View.GONE
table2.visibility = View.VISIBLE
btn_addtable2.visibility = View.VISIBLE
Groupview
but there is no such view in (this part of) code. Where is the problem?