<fragment
android:id="@+id/place_autocomplete_fragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:name="com.google.android.gms.location.places.ui.PlaceAutocompleteFragment"/>
I am reading the fragment by
PlaceAutoCompleteFragment fromCity = (PlaceAutocompleteFragment)getFragmentManager().findFragmentById(R.id.source);
View destinationClearView = fromPlace.getView().findViewById(R.id.place_autocomplete_clear_button);
But destinationClearView.setVisibility(View.INVISIBLE) is not working, How to acheive that?