0

我有一个关于android的问题。我不是安卓专家。我想在列表中显示员工表数据(列表视图或网格任何东西)。不像表格视图,列表如下所示。我认为为此我需要自定义列表视图?是否可以有一个列表视图/网格视图来自定义如下?请指教。或者任何已经可用的开源代码?

      [Reviewer Name (Editable)]       
               Employee Lest           
---------------------------------------
Employee1                    [Click Me]

Male (0)          Female ( )
Salary : [5999 (editable)]
Qualification
[X]BA
[ ]BSc
[ ]Matriculation
[ ]Other
[Submit Button]
---------------------------------------
Employee2                    [Click Me]

Male (0)          Female ( )
Salary : [5999 (editable)]
Qualification
[X]BA
[ ]BSc
[ ]Matriculation
[ ]Other
[Submit Button]
---------------------------------------
Employee3                    [Click Me]

Male (0)          Female ( )
Salary : [5999 (editable)]
Qualification
[X]BA
[ ]BSc
[ ]Matriculation
[ ]Other
[Submit Button]
---------------------------------------
4

2 回答 2

0

是的,您需要实现一个自定义适配器,它会扩展自定义布局。实现自定义适配器(通过扩展BaseAdapter类或ArrayAdapter<Employee>类)查看本教程:http ://www.ezzylearning.com/tutorial.aspx?tid=1763429

于 2012-10-25T09:13:31.070 回答
0

自定义列表视图将为您完成这项工作。
是一个非常适合您的案例的教程。
您的自定义列表视图的布局应该是这样的:

---------------------------------------
TextView                    Button

RadioGroup
TextView  EditText
TextView
CheckBox TextView
CheckBox TextView
CheckBox TextView
CheckBox TextView
Button
---------------------------------------
于 2012-10-25T09:16:40.820 回答