Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to create list and sublist -android?

Tags:

android

I am new to android.Can any one help me .how to create a list. example: List1 by selecting list1 I should get list1 items in sublist list1.1,list1.2.... List2 by selecting list2 sublist items as list2.1 list2.2

Please help me.

like image 786
raji Avatar asked Jun 02 '10 16:06

raji


People also ask

How do you create a list and a sublist in Python?

Step 1 : given a list. Step 2 : take one sublist which is empty initially. Step 3 : use one for loop till length of the given list. Step 4 : Run a loop from i+1 to length of the list to get all the sub arrays from i to its right.

What is a sublist in Python?

A list in python can also contain lists inside it as elements. These nested lists are called sublists.

How do you make a sublist on the keyboard?

Add a sub-bulletKeyboard shortcut for Increase List Level: Tab. Keyboard shortcut for Decrease List Level: Shift+Tab.


1 Answers

You are looking for ExpandableListView, which allows you to have two levels of expansion. Listview (which is what is used in the NotePad example) only allows one level.

I haven't started working with those yet, so I can't recommend any specific tutorials or examples, but now that you know the name of what you are looking for, poke around the android dev site and google about. The first search hit is here if it's worth anything.

Good luck!

like image 94
Aurora Avatar answered Nov 14 '22 22:11

Aurora