現在の場所と選択した場所を取得してフェッチしますが、キャンセルの十字ボタンを押すとすべてがクリアされますが、変数からクリアできません..事前に助けてくださいありがとう
2740 次
2 に答える
0
その可視性を設定することはできません。リスナーもありません。
グーグルの次の更新で利用できるようになるかもしれません。
正しい解決策ではありませんが、本当に必要な場合。ユーザーが十字ボタンを見ることができないように、相対レイアウトを使用して十字ボタンに白いビューを作成できます。
<RelativeLayout
android:layout_below="@+id/actionBar"
android:id="@+id/ll1"
android:layout_width="match_parent"
android:layout_height="@dimen/_40sdp"
android:alpha=".9"
android:background="@drawable/home_page_search"
android:layout_margin="10dp"
>
<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"
/>
<View
android:id="@+id/view1"
android:layout_width="@dimen/_50sdp"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:background="@color/white"
android:layout_margin="@dimen/_5sdp"
/>
</RelativeLayout>
クリックリスナーを配置して、クロスをクリックできないようにします
于 2016-03-16T12:29:48.820 に答える