Write an app that has a happy picture at the top of the screen, and a list (using a ListView) of happy/sad pictures and country names below that. When the user clicks on a list element, the picture in that element is flipped happy<->sad, and the resultant picture is also shown at the top of the screen. You'll need to have your own adapter class that extends SimpleAdapter, and has a getView method that displays the right image in the view. (There is no need for a setViewValue method because the image is constant when scrolling.)

Use best practices for all aspects of the code!

Answer