com.google.android.gms.location.places.AutocompletePrediction

Here are the examples of the java api class com.google.android.gms.location.places.AutocompletePrediction taken from open source projects.

1. PlaceAutocompleteAdapter#getView()

View license
@Override
public View getView(int position, View convertView, ViewGroup parent) {
    View row = super.getView(position, convertView, parent);
    // Sets the primary and secondary text for a row.
    // Note that getPrimaryText() and getSecondaryText() return a CharSequence that may contain
    // styling based on the given CharacterStyle.
    AutocompletePrediction item = getItem(position);
    TextView textView1 = (TextView) row.findViewById(android.R.id.text1);
    TextView textView2 = (TextView) row.findViewById(android.R.id.text2);
    textView1.setText(item.getPrimaryText(STYLE_BOLD));
    textView2.setText(item.getSecondaryText(STYLE_BOLD));
    return row;
}