我想将Groupview.visibility = View.VISIBLE
更改为GroupView.visibility = View.GONE
。代码应该如何?
这是我的Activity.kt
if (viewModel.inputPosTableArea1.value != "") {
btn_addtable1?.visibility = View.GONE
table2?.visibility = View.VISIBLE
btn_addtable2?.visibility = View.VISIBLE
}
我希望当“添加”按钮被“单击”时,它将变为如下所示:
btn_addtable1.visibility = View.GONE
table2.visibility = View.VISIBLE
btn_addtable2.visibility = View.VISIBLE