Gridview and Expandable listview in same scrollview in Android - android

I want to scroll the gridview and expandable listview in same scroll. How I need to implement and which type of code I need to add for adapters. I using one method to adding these two (gridview, expandable listview in same class) but here I am facing problem with expandable listview child height. I put gridview and expandable listview height static. Expandable listview child items expand remaining top or ending group items are not displaying. Can any one suggest any best solution for this...
Thanks,
Shaik. Khaja Peer...

Related

ExpandableListView inside ScrollView is showing only one item

When I use ExpandableListView inside ScrollView it will show only one item,It is not showing all items and also when selected items it will shows all child items.
If your parent layout contains more items. Then you have to fix the height of listview in form of some dp instead of wrap_content/match_parent, or use NestedScrollView.

Android scrollview as listitem

I have a listview that has custom child items. Each list item has scrollview inside. Its not good practice to put scrollview inside listview but my requirement is like that.
Example: I have a listview and date picker kind of view has child element. Now how do I scroll the child views in each list item?
Instead of using a ScrollView as a row item within a ListView try using ExpandableListView

Not scrollable listview in scroll view android

i need to make a layout that is scrollable, holds a listview that is not scrollable(full height of the content). So when i scroll the content above the listview is showed, and the full listview is displayed.
Is this possible in android?
what do you mean by ListView ( not scrollable).. will it have predefined items(count) ?
you can have a <ScrollView></ScrollView> inside of which a normal(linear/relative layout say id insidelayout1)
For single item of your ListView, create a separate xml(say item.xml) and try to inflate item.xml into insideLayout1.
Will that work for you.. or detail out your requirement...
If you want to put list view inside the scroll view than you have to fix the height of list view.
otherwise you can't scroll it properly.

How to make custom view scrollable along with Expandable List view ...?

I have a one custome view and on expandable list view.
list is scrolling fine but when i tried to place both in a scroll view its not working.
I decided to place the custom view in one of the element in the expandable list view.
But, each element in the list has two items Group and Childs.
How to replace both of them with my view at first position...?
Thanks in advance...!
Finally i got a solution for this.
Load your custom view into the ExpandableListView as Group with 0 children.
Then make group indicator invisible.. that's it. :)

Android List View

In my Layout there are some widgets are there in above to the list view. When i scroll through the list view i want to scroll my layout fully.Please any one can suggest the answer
Put the widgets that are presently above the ListView inside the ListView, either by using addHeaderView(), my MergeAdapter, or your own custom Adapter class. The, those widgets will scroll along with everything else in the ListView.

Categories

Resources