android - Dynamically adjust the height of group headers in an ExpandableListView -


i have expandablelistview (elv) groups having linearlayout. have set height of group value (38dip in case, equivalent 2 lines of text). if group heading long , take more 2 lines, not shown in elv item - part of view gets scrolled. on other hand, if change android:layout_height "wrap_content" in linearlayout, groups show lines. line widths variable, i.e., short titles show 1 line , long titles show 2, 3 or 4 lines. looks ugly. implement height max("38dip", "wrap_content"). there way this?

even programmatically, not seem getting actual height of group if set android:layout_height "wrap_content". suggestions there?

could not solve problem directly. added following xml layout file of group:

   android:paddingtop="7dip"    android:paddingbottom="7dip" 

that makes layout looking less congested wanted in first place. moving on - interested if else have better solution.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -