title: How to add styling to autocomplete predictions in google maps API for android?
body: <p>I am using Google Maps API v2 Android for my project in which I am using PlaceAutocomplete Predictions API to fetch the suggestions. My question is how to make the suggestions look more dynamic i.e. as the user types, the letters in the suggestions that matches the input provided should change colour, similar to Google Maps like the following (here the letters 'n', 'e' and 'w' go bold in the suggestions):</p>
  
  <p><a href="https://i.stack.imgur.com/LqJ2D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LqJ2D.png" alt="enter image description here"></a></p>
  
  <p>I have read the documentation <a href="https://developers.google.com/android/reference/com/google/android/gms/location/places/AutocompletePrediction#getFullText(/android.text.style.CharacterStyle)" rel="nofollow noreferrer">one</a> and <a href="https://developers.google.com/places/android-api/autocomplete#get_place_predictions_programmatically" rel="nofollow noreferrer">two</a>, which says:</p>
  
  <blockquote>
    <p><code>getFullText(CharacterStyle matchStyle)</code> returns the full text of a place description. This is a combination of the primary and secondary text. Example: "Eiffel Tower, Avenue Anatole France, Paris, France". In addition, this method lets you highlight the sections of the description that match the search with a style of your choice, using <code>CharacterStyle</code>. The CharacterStyle parameter is optional. Set it to null if you don't need any highlighting.</p>
  </blockquote>
  
  <p>But I couldn't find any further explanation in the documentation on how to implement <code>CharacterStyle</code> with <code>getFullText(CharacterStyle)</code>, please help. Thanks in advance! :)</p>