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.
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.
A list in python can also contain lists inside it as elements. These nested lists are called sublists.
Add a sub-bulletKeyboard shortcut for Increase List Level: Tab. Keyboard shortcut for Decrease List Level: Shift+Tab.
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With