-1

I am developing an Android App in which i have 60 Items which i have bind with GridViewAdapter which is display 9 Items Per Page and working properly.

GridView

BUT

I want to make search from that 60 Items using Name of Items and want to focus on EditText.

I have done code but that search from 9 items only which is currently displaying.

Is there any solution that make it perfect.

Your Help always Appreciated...

4

2 に答える 2

0

このシナリオの最も簡単な解決策は、検索クエリを実行することです

Select * from TableName where Name="Given name from Edit text"

このクエリは 2 つの方法で実行できます

  1. 編集テキストに文字を入力するたびに実行したい場合は、メソッドをオーバーライドします

    addTextChangedListener

  2. 入力したテキストの最後とボタンでクエリを実行したい場合は、ボタンのクリックでDbクエリを実行します

于 2014-01-09T06:35:30.197 に答える