please see below code and say me its solution.
I have tree view same below
<RelativeLayout id="parent">
<RelativeLayout id="container1">
<view .../>
</RelativeLayout>
<RelativeLayout id="container2">
<view .../>
</RelativeLayout>
</RelativeLayout>
in activity:
ViewGroup parent = findViewById(R.id.parent);
parent.setOnClickListener(new ...);
I want when click on any children of parent view and children of children, parent's click event be fire.
parent view is a ViewHolder for ListView.
I test many code but not work
like, add to parent root
android:clickable="true"
android:focusable="true"
and false above for children, but :(