You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
最子项列表中的每个项的点击事件怎么响应啊?在bindView里也监听不到,没有position参数,没法确定点的是哪个子项
public class ThirdLevelNodeViewBinder extends CheckableNodeViewBinder {
TextView textView;
public ThirdLevelNodeViewBinder(View itemView) {
super(itemView);
textView = (TextView) itemView.findViewById(R.id.node_name_view);
}
@Override
public int getCheckableViewId() {
return R.id.checkBox;
}
@Override
public int getLayoutId() {
return R.layout.item_third_level;
}
@Override
public void bindView(final TreeNode treeNode) {
textView.setText(treeNode.getValue().toString());
Log.e("---ThreeTextView", treeNode.getValue().toString());
textView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
//当点开二级列表的时候,三级列表有几个子项,此方法就会执行几遍
Log.e("---ThreeTextView", treeNode.getValue().toString());
}
});
}
}
The text was updated successfully, but these errors were encountered:
最子项列表中的每个项的点击事件怎么响应啊?在bindView里也监听不到,没有position参数,没法确定点的是哪个子项
public class ThirdLevelNodeViewBinder extends CheckableNodeViewBinder {
TextView textView;
}
The text was updated successfully, but these errors were encountered: