A small android library for tagging views inside a ScrollView as "sticky" making them stick to the top of the scroll container until a new sticky view comes and takes it's place
Apache License 2.0
1.03k
stars
262
forks
source link
Problem adding viewPager and inflating gridView in it #25
but viewpager is not shown in runtime and it seems to have height of 0.
I tried setting android:layout_height="wrap_content" for GridView and it's parent but it has the same result.
When i set the viewPager's height to android:layout_height="700dp" or something, it works but the problem is that the height of grid view depends on nomber of items retrieved from server and it is not fixed.
This is my fragment layout containing StickyScrolView:
and on runtime fill the view pager with fragments containing this layout:
but viewpager is not shown in runtime and it seems to have height of 0. I tried setting android:layout_height="wrap_content" for GridView and it's parent but it has the same result.
When i set the viewPager's height to android:layout_height="700dp" or something, it works but the problem is that the height of grid view depends on nomber of items retrieved from server and it is not fixed.
how can i solve this?