سؤال

I have in a scrollview defined three main linear layout.

When on click on one of this layout I would like to expand a list with different options. How to do that?

I have something like this:

Currently I have:

Main.java:

linlayout1.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {..../ go to a new inntent}
 }

Main.xml:

Layout1
Layout2
Layout3

When clicking on Layout1 I would like to see:

Layout1
 Option1 
 Option2
 Option3
Layout2
Layout3

Can someone help me with the best solution to this? Thx

هل كانت مفيدة؟

المحلول

you can use this tutorial for your specification. Here is a link, Click Here

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top