开发者

How to display sqlite contents

I'm not that exp开发者_如何学运维erienced so I may have missed something obvious. What I am trying to achieve is a search feature for the database.

The two methods I'm thinking of are either an edittext and a listview and everytime the edittext changed a query is run and the listview is updated. Or populating the listview with all the data and then filtering it.

If I went for the second option I'm guessing it is less demanding on memory plus could I hide all the contents while the edittext is empty?

Any examples of implementation would be helpful too.

Thanks


A good place to start is the Android Dev Guide under the Data Storage section. Have a look at the Searchable Dictionary sample there.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜