ListList에 onclickListener를 설정하여 wordList를 표시하면 목록에 표시된 텍스트를 다시 검색 할 수 있습니까? 또한 그 기능을 어디에 써야합니까? 나는 순진한 Android 개발자이며 이에 대한 적절한 예를 찾을 수 없습니다! 당신의 onActivityCreated
사용목록보기에 onclickListener를 두는 방법
ListView lv = getListView();
lv.setOnClcikListener();
에서
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data)
{
if (requestCode == REQUEST_CODE && resultCode == RESULT_OK)
{
// Populate the wordsList with the String values the recognition engine thought it heard
matches = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);
wordsList.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,matches));
}
super.onActivityResult(requestCode, resultCode, data);
}
확인이 : http://stackoverflow.com/questions/2240411/android-when-i-set-an-onclicklistener-for-a-listview 상황에 맞는 메뉴를 추가 – Santhosh