Android实现中的N级树结构

时间:2013-12-10 23:41:55

标签: tree-structure

我想在android中实现N级树结构。我已经浏览了ExpandableListView,但它仅适用于2或3级。我的要求如下......

CAR
|
|==Toyota
|     |
|     |==Sedan
|     |     |
|     |     |==Camry
|     |     |    |
|     |     |    |==Manufacture year
|     |     |    |==Body Colour
|     |     |    |    |
|     |     |    |    |==Black
|     |     |    |    |==Blue
|     |     |    |    |==Red
|     |     |    |    
|     |     |    |==Alloy Wheels
|     |     |    |==CD player
|     |     |    |==Petrol/Diesel
|     |     |    
|     |     |==Yaris
|     |          |
|     |          |==Manufacture year
|     |          |==Body Colour
|     |          |    |
|     |          |    |==Black
|     |          |    |==Blue
|     |          |    |==Red
|     |          |    
|     |          |==Alloy Wheels
|     |          |==CD player
|     |          |==Petrol/Diesel
|     |
|     |==Hatch Pack
|     |     |
|     |     |==Yaris
|     |          |
|     |          |==Manufacture year
|     |          |==Body Colour
|     |          |    |
|     |          |    |==Black
|     |          |    |==Blue
|     |          |    |==Red
|     |          |    
|     |          |==Alloy Wheels
|     |          |==CD player
|     |          |==Petrol/Diesel
|     |
|     |
|     |
|     |==Four Wheel Drive
|
|
|==Mazda
|
|    This section will have
|    same classification as above
|
|==Nissan
|
|    This section will have
|    same classification as above
|
|==Ferrari
|
|    This section will have
|    same classification as above
|
|==Hyundai
|
|    This section will have
|    same classification as above
|

您是否有任何建议在Android中实现此功能。示例代码会更有帮助。提前谢谢。

0 个答案:

没有答案