Android Treeview

前端 未结 10 1886
野的像风
野的像风 2020-12-02 09:30

I know there is the ExpandableListView but it only supports up to 2 levels. I need a true treeview vertical list with at least up to ~5 levels (more is better).

Any

10条回答
  •  旧时难觅i
    2020-12-02 09:58

    I found the link below very, very useful. It describes alternative ways of storing tree structures in two dimensional data structures (typically a database table).

    I think you'll find the paradigm easy to understand and implement.

    http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/

    As of how to visualize this in Android is another question. I would perhaps write my own widget from scratch if the "padded" list items solution isn't sufficient.

提交回复
热议问题