i have a ExpandableListActivity with an custom Adapter.
if the custom row of the adapter contains a imageViewall is done, but if i change this view from imageView to imageButton, the expandable listview don't expand.
Is there any method to put a button that can be clicked and the expandablelist does not lose the functionality to expand?
The button should be no-focuseable. In your listView.setOnItemClickListener (not in xml layout!!) :
Button button = (Button) view.findViewById(R.id.yourButton);
//where button is the button on listView, and view is the view of your item on list
button.setFocusable(false); /// THIS IS THE SOLUTION
button.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
//button functionalty ...
}
});