私には、編集テキストのリストが提示されるアクティビティがあります。問題は、アクティビティが開始されるとすぐに、最初の編集テキストのために仮想キーボードがすぐに起動されることです。このテキストを編集する前にスピナーがあるので、このようなことは起こりたくありません。このようにキーボードをポップアップすると、以前のスピナーを忘れてしまうことがよくあります。EditTextオブジェクトのAndroidの問題
が<Spinner
android:id="@+id/event_location"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30px"
android:prompt="@string/location_prompt" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Event Name: " />
<EditText
android:id="@+id/event_name"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Activity Type: " />
<Spinner
android:id="@+id/event_type"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Address: " />
<EditText
android:id="@+id/event_address"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
概要:
はここに関連するコードだのEditTextとの活動が開始され、仮想キーボードが自動的にポップアップ表示されます。ユーザーが編集テキストを押さない限り、これをやりたいとは思わない。
ありがとうございました。
無事を確認してください、私はそれを試してみますよ。何もプロンプトが出ないようにする方法はありますか?私。ユーザーが何かをクリックするまで何も「ポップアップ」しません。 EDIT - requestFocusは何も変更しませんでした。 – JDS
私は自分の答えを編集しました。 – pqn