1.在布局文件中添加一个ListView,长宽设置为match_constrain;
2.在Java文件中添加代码;
2.
ArrayAdapter 实例
原文:https://www.cnblogs.com/shandian333/p/11666775.html