In MainActivity, there is an ExpandableListView, how can I pass a value when I click on a sheet from MainActivity to an ImageAdapter? If you can with examples or links that smoke

    1 answer 1

    ExpandableListView has setOnChildClickListener and setOnGroupClickListener methods . With their help, and you can run any code when you click on the list item.

    As far as I know, in Android there is no class ImageAdapter. Therefore, you either created it yourself or took it somewhere. So no one will tell you how to transfer something there, because no one knows what kind of class it is. No one will help you until you put his code here, and do not explain what, in your understanding, means "to transfer to it the value"