采用的是Android任何正常的表视图? [英] Is any normal table view in Android?

查看:137
本文介绍了采用的是Android任何正常的表视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要建立这样的事情

但在Android系统。如何创建表(像秋千JTable中),这将是有:

but in Android. How to create table (like jtable in swing), which will be have:


  1. 静态标题

  2. 点击一行(如ListView的元素)

  3. 滚动内容

推荐答案

有没有像这样在Android的组件。您应该创建一个的ListView 与内容行和上面的标题行的布局。并就您将使用重新present在ListView中每一行的布局列分工。

There isn't a component like this on Android. You should create a ListView with the content rows and above a layout with the header row. And make the column division on the layout that you will use to represent each row on the ListView.

另一种方法是创建一个 TableLayout 滚动里面,像这样的回答表明:<一href=\"http://stackoverflow.com/questions/4873556/focusable-row-inside-table-android/5258310#5258310\">focusable行内表的Andr​​oid

Other way is create a TableLayout inside a scroll, like this answer suggests: focusable row inside table android

这篇关于采用的是Android任何正常的表视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆