CheckableTreeView icon indicating copy to clipboard operation
CheckableTreeView copied to clipboard

Create a dynamic treeview unable select checkEX.

Open simphonydeveloper opened this issue 1 year ago • 0 comments

When I create a TreeView using code, I'm unable to select the current item or trigger setOnCheckedChangeListener.

    val linearLayout = findViewById<LinearLayout>(R.id.tree_container)

        val treeView = SingleRecyclerViewImpl<StringNode>(baseContext)
        treeView.setRoots(listOf(TreeNodeFactory.buildTestTree()))
        val layoutParams = LinearLayout.LayoutParams(
            200,
            LinearLayout.LayoutParams.WRAP_CONTENT
        )

        linearLayout.addView(treeView, layoutParams)

simphonydeveloper avatar Dec 13 '24 06:12 simphonydeveloper