如何显示在ListView的二维数组? [英] How to Display two dimensional Array in ListView?
本文介绍了如何显示在ListView的二维数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有二维数组,这二维数组有字符串。我想知道如何显示在ListView中的字符串?如何在垂直和水平滚动两者兼而有之?
的String [] []板=新的String [] [] {{1,10,100},{hi0,1hello,测试},{test31,test32,test43}};
解决方案
这似乎是你所要求的基本的东西,如何使用ListView控件。请检查一下,你会得到所有有关的ListView。
I Have 2D Array and this 2D Array has Strings. I would like to know How to Display the Strings in ListView?how to scroll both vertically and horizontally?
String[][] board = new String[][] {{"1","10","100"},{"hi0","1hello","test"},{"test31","test32","test43"}};
解决方案
It seem to be you are asking basic things, How to use ListView. please check it you will get all about ListView.
Android ListView and ListActivity
这篇关于如何显示在ListView的二维数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文