I have this listview that has childs (Wall Pushup etc.) in a parent category (Beginner_Ex). How do I make a 'grandparent' for the parents?
-- I now have:
Parent --Child --Child --Child
What I want is:
Grandparent ---Parent ------Child ------Child
public static HashMap<String, List<String>> getInfo()
{
HashMap<String, List<String>> ExDetails = new HashMap<String, List<String>>();
List<String> Beginner_Ex = new ArrayList<String>();
Beginner_Ex.add("Wall Pushup");
Beginner_Ex.add("Knee Pushup");
Beginner_Ex.add("Regular Pushup");
Beginner_Ex.add("Assisted Pullup");
Beginner_Ex.add("Leg Raise on Ground");
ExDetails.put("Beginner", Beginner_Ex);
ExDetails.put("Experienced", Experi_Ex);
ExDetails.put("Advanced", Advanced_Ex);
ExDetails.put("Expert", Expert_Ex);
ExDetails.put("Impossible", Imposs_Ex);
return ExDetails;