I have an issue with my Main Activity and a ListView and I absolutly don\'t understand how it works...
OK ! This is what I want :
Expectation
In your adapter's getView() method, you have to design a child_view layout. The layout which you return will be show in every item of the list. Because you're returning main_activity_layout so every your item would show the mainAcitivy, which contains a button. Solution is create new layout with your own design and replace it with R.layout.main_acitivity_layout. Good luck