title: Changing the icon of Google Maps marker while it's selected
body: <p>I want to change the icon of a map marker only while it's selected.</p>
  
  <p>I implemented GoogleMap.OnMarkerClickListener class in my Fragment class.</p>
  
  <pre><code>public class MapFragment extends SupportMapFragment implements GoogleMap.OnMarkerClickListener{
  
  ....
  
    @Override
    public boolean onMarkerClick(Marker marker) {   
      marker.setIcon(BitmapDescriptorFactory.fromResource(R.drawable.placemarker_pressed));
      return false;
    }
  }
  </code></pre>
  
  <p>It changes the marker icon when clicked. How can I set it back to the original icon when it's unselected?</p>