I’m looking for the best method to display a category list in Android. What I need is a list in the app of all the categories an item falls under, then if they select that category, it would display all the items under that category.
I’m wondering how I can make this most easily, I’m not sure which one of two options is easiest, or possible. I was thinking that I could have a column in my table and the column would be named “category” for example. I would fill in the category for each row such as “food, equipment, tools” etc, but I want only the category to show up and then if selected the items within that category.
Or.
Would it be easier to make a column for each category and select it as a “true” “false” sort of way. Any info would be greatly appreciated.
to fill the first list with data from mysql
after click on one category-name, fill the sub-list with data from the ItemClick category-name.
memo: this is only the act, is not the code