الثلاثاء، 31 ديسمبر 2013

Android: Searchview searches only whole words

Search is based on starting characters, but i would like that will search everything. Here is part of my code, method onTextChanged isn't right, I think.. Thanks for help!

@Overridepublic void onCreate(Bundle savedInstanceState) { final ArrayList seznamPojmov = (ArrayList) SeznamPojmovRazlag(0); final ArrayList array_sort= new ArrayList(); super.onCreate(savedInstanceState); setContentView(R.layout.activity_slovar); final ListView list = (ListView) findViewById(R.id.slovar); final EditText iskanje = (EditText) findViewById(R.id.iskanje); final ArrayAdapter a = new ArrayAdapter (Slovar.this, android.R.layout.simple_list_item_1, array_sort)); } });

View the original article here

ليست هناك تعليقات:

إرسال تعليق