Hi there,
I have implemented the ViewPager in my application.

Each page of my ViewPager has a separate layout.xml file that get's 
inflated each time the user changes the page. The problem is that the first 
layout has a fixed height of 200dp when the second changes the height 
dynamically as the user adds content into it. I've been trying somehow to 
get the height of the second layout and assign the height value it to the 
ViewPager using LayouParams but no luck. The ViewPager 
layout_height="wrap_content" doesn't work, which is normal, because the 
layout is not loaded yet and the height is unknown. The only possible way 
is to add height dynamically but how?


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to