开发者

What is the alternative for android:entries in code?

开发者 https://www.devze.com 2023-03-12 10:32 出处:网络
How to I send an String array to a listView from the code and have the emulato开发者_Python百科r display it?That is a very general question... but the basic idea would be to create one of the usual Ad

How to I send an String array to a listView from the code and have the emulato开发者_Python百科r display it?


That is a very general question... but the basic idea would be to create one of the usual Adapters, ArrayAdapter possibly in this case, initialize it with the String array and then call the ListView's setAdapter() method with that ArrayAdapter.

0

精彩评论

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