Domanda

I'm trying to create an accordion in Android that has the following features:

  • Slide animation when opening a tab
  • Alignment to the top when opening a tab
  • The ability to be used inside a fragment and not inside an activity

Any idea to how to accomplish all these points? I've seen a lot of libraries that however luck of one or more of this points (and I cannot fix the remaining myself :( ).

Any idea? Also pointers to how-to-guides to how to fix the missing points would be really useful! Thanks

È stato utile?

Soluzione

If you are interested on how I solved the problem, you can find the code here: https://github.com/filnik/AndroidSmoothAccordion

It is "quick-and-dirty" but it does the job.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top