android Google Maps change MyLocation icon to Material icon : <p>I am using Google Maps API in my android app and I want to change the appearance of my location button from the old one with square to the new round material design icon.</p>

<p>Current one:<br>
<a href="https://i.stack.imgur.com/92zQt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/92zQt.png" alt="old"></a></p>

<p>I wanna change it to this one: </p>

<p><a href="https://i.stack.imgur.com/GSWXJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GSWXJ.png" alt="new"></a></p>

<p>Also, how do I change its position from upper right corner to bottom right corner?</p>

<p>Below is my code for XML file:</p>

<pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.bhoiwala.locationmocker.MapsActivity" &gt;
  &lt;fragment xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:map="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:id="@+id/map"
  android:name="com.google.android.gms.maps.SupportMapFragment"
  android:layout_width="match_parent"
  android:layout_height="wrap_content" /&gt;
&lt;/FrameLayout&gt;    
</code></pre>

<p>Below is the code on how I'm using it:</p>

<pre><code> private void updateLocationUI() {
    if (mMap == null) {
        return;
    }

    if (mLocationPermissionGranted) {
        mMap.setMyLocationEnabled(true);
        mMap.getUiSettings().setMyLocationButtonEnabled(true);
    }
</code></pre>

<p>Thank you :)</p>
