I have tried the Custom Expandable listview discussed here
https://www.b4x.com/android/forum/threads/custom-expandable-listview.15986
And it's more or less what i'm looking for.
collapsed element is the question, click on it and it expands with the answer.
However there are a couple of bugs and nuances with this library:
-I was able to collapse to the desired height because i can get the title panel height, however i cannot find how to expand just enought to show the answer because i can't get the label height, only the height of the panel that contains the label that contains the text.
-the various UI elements in the listview have a transparent/semitransparent background. when expanding/collapsing the content to be expanded is immediately rendered and so the text overlaps during transition.. it is "fixed" if the backgrounds are solid colors, but i'd like to avoid that
-if i am closing an element and i am seeing the bottom of the view, or before closing the list is longer than phone screen height, after closing is less than phone screen height, the list will be rendered with the height it would have if it was closed, so it is "cut"
is there another way i can implement this?
https://www.b4x.com/android/forum/threads/custom-expandable-listview.15986
And it's more or less what i'm looking for.
collapsed element is the question, click on it and it expands with the answer.
However there are a couple of bugs and nuances with this library:
-I was able to collapse to the desired height because i can get the title panel height, however i cannot find how to expand just enought to show the answer because i can't get the label height, only the height of the panel that contains the label that contains the text.
-the various UI elements in the listview have a transparent/semitransparent background. when expanding/collapsing the content to be expanded is immediately rendered and so the text overlaps during transition.. it is "fixed" if the backgrounds are solid colors, but i'd like to avoid that
-if i am closing an element and i am seeing the bottom of the view, or before closing the list is longer than phone screen height, after closing is less than phone screen height, the list will be rendered with the height it would have if it was closed, so it is "cut"
is there another way i can implement this?