在实现一个页面中显示 1~n 的数字时使用到了 ArrayAdapter ,以及 ArrayList<String> 并让每个数字都作为一个列表项显示在Android 为我们提供的布局 文件android.R.layout.simple_list_item_1 当中。 ArrayAdapter 帮助我们管理 ArrayList 中的 String 对象。
ArrayAdapter
ArrayList<String>
android.R.layout.simple_list_item_1