Creating a List with sub-category levels for Android

Hi All,

Can someone tell me how I can accomplish this on the xml layout file?

I can use the expandable list view, but that doesn't drill down to the 3rd level.

For example, if I created a list and I want the user to be able to create up to 3 levels of categories.

example-levels.png
teknovationAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

teknovationAuthor Commented:
anyone?
teknovationAuthor Commented:
any android developers?
KRUNAL TAILORFreelance Mobile DeveloperCommented:
Hi teknovation,

Please share your code here, without that we could not help you much.
If you getting problem with how to start then refer this tutorial.

http://techlovejump.com/android-multilevel-listview-tutorial/

Hope this will help you and this is what you are looking.

Thanks & Regards,
Krunal T. Tailor
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

teknovationAuthor Commented:
this is excellent! how can i trigger adding levels by a add button?

like allow users to add sub categories?
KRUNAL TAILORFreelance Mobile DeveloperCommented:
Hi teknovation,

You wan't your app user to add the subcategories, am i right?
If yes in that case you will create one more button on parent cell(on 2nd level). If user press that button then invoke a popup to enter the subcategories. once user done then you need to add that data inside the arraylist and then reload the table.

Popup refrence: popup
Hope you get what am i trying to say.

Thanks & Regards,
Krunal T. Tailor
teknovationAuthor Commented:
Great, is there a syntax you can provide that can help me do this? I'm new to android development.
KRUNAL TAILORFreelance Mobile DeveloperCommented:
Hi teknovation,

Sample tutorial to create popup with textbox.
http://www.mkyong.com/android/android-prompt-user-input-dialog-example/

Sample tutorial to create button on list item.
http://www.androidhub4you.com/2013/02/muftitouch-listview-multi-click.html

Hope you will got all things what you needed sample syntax.

Thanks & Regards,
Krunal T. Tailor

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Android

From novice to tech pro — start learning today.