0
我想在用於顯示位置的PlaceAutocompleteFragment中顯示關閉按鈕(X標記)。我如何做到這一點。使關閉按鈕(X標記)在PlaceAutocompleteFragment中可見
下面是XML片段:
<android.support.v7.widget.CardView
android:id="@+id/cardview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone">
<fragment
android:id="@+id/autocomplete_fragment_second"
android:name="com.google.android.gms.location.places.ui.PlaceAutocompleteFragment"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</android.support.v7.widget.CardView>