Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sqlite 带Arrayadapter的AutoCompleteTextView-它有自己的大脑吗?_Sqlite_Autocomplete_Autocompletetextview - Fatal编程技术网

Sqlite 带Arrayadapter的AutoCompleteTextView-它有自己的大脑吗?

Sqlite 带Arrayadapter的AutoCompleteTextView-它有自己的大脑吗?,sqlite,autocomplete,autocompletetextview,Sqlite,Autocomplete,Autocompletetextview,这是我的quandry 我有一个AutoCompleteTextview,通过从sqlite数据库获取数据来填充它 当我在autocompletetextview(获取数据的查询)中键入“mat”时,结果集如下所示: 35-Mathoura Rd/Toorak Rd 59-Airport West/Matthews Ave 58-Marshall Rd/Matthews Ave 57-Hawker St/Matthews Ave 56-Earl St/Matthews Ave 55-Camero

这是我的quandry

我有一个AutoCompleteTextview,通过从sqlite数据库获取数据来填充它

当我在autocompletetextview(获取数据的查询)中键入“mat”时,结果集如下所示:

35-Mathoura Rd/Toorak Rd
59-Airport West/Matthews Ave
58-Marshall Rd/Matthews Ave
57-Hawker St/Matthews Ave
56-Earl St/Matthews Ave
55-Cameron St/Matthews Ave
54-Fullarton Rd/Matthews Ave
54-Fullarton Rd/Matthews Ave
53-Keilor Rd/Matthews Ave
.
.
.
.
.
more data
但是,在“自动完成”下拉列表中,结果如下所示:

Matthew Cl/Westmill Dr
Matson Dr/Glenfern
Matlock Rd/Lewis St
.
.
.
and so on.

我想知道为什么来自数据库的结果和显示的结果不完全匹配?

看起来是这样的。必须编写自己的适配器才能实现我想要的顺序