开发者

Bind JSONArray to adapter

开发者 https://www.devze.com 2022-12-12 03:16 出处:网络
How would you go about to bind a JSONArray to an adapter, the adapter will be used to bind data to a spinner.

How would you go about to bind a JSONArray to an adapter, the adapter will be used to bind data to a spinner.

Of course I could iterate over th开发者_如何学编程e strings in the JSONArray and add 'em to a String array, but that seems cumbersome.


Create your own adapter class, extending BaseAdapter, that adapts your JSON data according to whatever rules you feel are appropriate. The built-in adapter classes are not well-suited for JSON data.

0

精彩评论

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