Android listview with expandable list view item -


i want have listview menu few clickable elements , last element must expandable list view item. mean when click last element, additional positions should expanded.

thank you!

dejvid

you have 3 options.

  • use expandablelistview every group-item have no childs-item , last group-item have child-items (they expanded when parent group clicked), there many examples arround.

    example of expandablelistview

  • use listview , inflate views on last item when called getview, know when loading last position because receive on function.

    example of listview

  • if number of items low consider using linearlayout listview , linearlayout last item.

for example

  <linearlayout android:orientation="vertical">             <textview />        <textview />        <linearlayout            android:orientation="vertical"            android:onclik="expand">            <textview />            <textview />        </linearlayout>    </linearlayout> 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -