1. Are you ready for the Galaxy S20? Here is everything we know so far!

Multilevel ListView

Discussion in 'Android Development' started by SDTricker, Jan 22, 2016.

  1. SDTricker

    SDTricker Lurker
    Thread Starter

    Hello everyone.

    I am trying to make embedded list views. Anyone know of any good tutorials around? I can't find a single youtube video on this or even an article written on how to do this. I have a very large graph with a bunch of nodes that I wannt turn into a navigational interface with listviews. The very bottom nodes all the children will all be fragmented activities.
    So I basically want to do this

    -ListView
    --ListView
    ---ListView
    ----ListView
    -----Activity
    -----Activity
    ----ListView
    -----Activity
    -----Activity
    ....ect...
    I was thinking of putting all the data in a JSON file and parsing that into listviews? But then again, I have no idea how to do this.
    Any help would be great.
     



    1. Download the Forums for Android™ app!


      Download

       
  2. Welcome to Android Forums.

    This thread was moved to the forum where development questions are discussed.

    ... Thom
     
  3. Deleted User

    Deleted User Guest

    Wow, nested Listviews. I wish you the best of luck with that one.
     
  4. ac4android

    ac4android Well-Known Member

    A thought.

    How about implementing a pure Java with a multi-dimensional array, load the list items into the array, then use multiple fragments with Listeners as interfaces AND replace fragments when user clicks the back button.

    Addendum:
    You will probably need a frame layout in your XML as a sort of fragment container and use the fragment manager to get each of the fragment transactions as the user cascades down the list items and then back up using the back button. It's going to be hard work.

    Think that approach might work?

    Please keep me informed of your progress.

    What does LV426 think?
     
    #4 ac4android, Jan 25, 2016
    Last edited: Jan 25, 2016
Loading...

Share This Page

Loading...