Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试动态创建“单元格”,它们需要一个图像和 3 个 TextView。我选择使用 TableLayout,我的单元格是 TableRows。我试过这个:
http://www.warriorpoint.com/blog/2009/07/01/android-creating-tablerow-rows-inside-a-tablelayout-programatically/
但是单元格没有出现(是的,我改变了文本的颜色:-))
有谁知道会发生什么?而且,有人提出比 TableRow 更好的建议?
您可以使用 WebView,然后可以使用 HTML/js(有出色的 jQuery 插件)创建/操作您的表格。我已经使用 TableLayout 尝试了几次,然后我切换到了 WebView/HTML 解决方案。
这实际上取决于您的应用程序的设计。