リストのフィルタリング中に問題に直面しています.onTextChange()メソッドを使用しています.正常に動作していますが、編集テキストに1文字を入力するとソフトキーボードが消え、編集テキストをもう一度タップして入力する必要があるという問題があります完全な文字列。テキストの変更後にソフトキーボードが消えないようにコードも作成しましたが、入力するにはテキストの編集をタップする必要があります。コードは次のとおりです。
 search.addTextChangedListener(new TextWatcher() {
        @ Override
        public void onTextChanged(CharSequence s, int start, int before, int count) {
            // TODO Auto-generated method stub
            String startwith = s.toString();
            ArrayList < Myshares > filterList = new ArrayList < Myshares > ();
            for (int i = 0; i < fileList.size(); i++) {
                if (fileList.get(i).getName().toLowerCase().startsWith(startwith) || fileList.get(i).getName().toUpperCase().startsWith(startwith)) {
                    filterList.add(fileList.get(i));
                }
            }
            adapter = new MListAdapter(PlayListActivity.this, filterList);
            playListView.setAdapter(adapter);
            adapter.notifyDataSetChanged();
        }
        @
        Override
        public void beforeTextChanged(CharSequence s, int start, int count,
            int after) {    
        }
        @
        Override
        public void afterTextChanged(Editable s) {
            search.setSelection(search.getText().length());
            InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
            imm.showSoftInput(search, InputMethodManager.SHOW_IMPLICIT);
        }
    });
編集テキストのxmlコードは次のとおりです。
<EditText
         android:ems="10"
        android:id="@+id/search_bar"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_margin="5dp"
        android:layout_weight="2"
        android:background="@drawable/searchbox"
        android:editable="true"
        android:focusable="true"
        android:inputType="textFilter"
        android:hint="Search"
        android:keepScreenOn="true"
        android:paddingLeft="10dp"
        android:textSize="15dp" />
また、リスト ビューで android:focusable="false " プロパティを設定して、ソフト キーボードと重ならないようにしました。しかし、編集テキストの問題は依然として同じです。スクリーンショットは次のとおりです。

挿入すると、単一の文字リストがフィルターを取得し、編集テキスト ボックスからカーソルが消えます。
