【发布时间】:2015-03-31 01:37:11
【问题描述】:
我正在尝试创建搜索栏,用于搜索来自服务器的 json 数据并将结果显示在 ListView 中。数据是数组的形式。例如
ProductList: [
{ ProductCode: "10012010",
ProductName: "Kell",
ProductGrammage: "120 gm",
ProductBarcode: "890123456789",
ProductCatCode: "40",
ProductCatName: "Packed Food and Condiments",
ProductSubCode: "4001",
ProductSubCodeName: "Breakfast & Cereals",
ProductMRP: "120",
ProductBBPrice: "115" },
ect...
]
假设我在搜索栏中输入 Kell。我希望这个 Kell 对象在我的列表视图中弹出。
【问题讨论】:
-
在这里查看我的答案:stackoverflow.com/a/19860624/2252830
标签: java android arrays json android-studio