title: How to switch between two custom JSON mapStyles in google map Android SDK
body: <p>Using google map style documentation, I have been able to create a style in JSON and use it.But I will like to switch between two custom map styles on click of a button. The button is an ImageView which I will append an onclick Listener.</p>
  
  <p><em>JAVA</em></p>
  
  <pre><code>try {
              boolean success = googleMap.setMapStyle(
                      MapStyleOptions.loadRawResourceStyle(
                              this, R.raw.mystyle.json));
  
              if (!success) {
                  Log.e(TAG, "Style parsing failed.");
              }
          } catch (Resources.NotFoundException e) {
              Log.e(TAG, "Can't find style. Error: ", e);
          }
  </code></pre>
  
  <p><em>XML</em></p>
  
  <pre><code> &lt;ImageView 
      android:id="@id/change_map"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" /&gt;
  
  
  </code></pre>