Hi I'm trying to create a ViewPager with a FragmentPagerAdapter. All works fine with devices API-10 but ViewPage measure fails in devices API-13 stretching the Fragment childs like adding a margin left and right.
Seems a problem of measurement because if I change the ViewPager layout_width from MATCH_PARENT to a fixed DIP value like 320dp this strange behavior disappears. The ViewPager is inflated in a Fragment of an ActivityFragment and the layout is like: <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="match_parent" android:layout_height="match_parent" > <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:baselineAligned="false" android:orientation="vertical" android:background="@color/fondo" > [ . . . ] <android.support.v4.view.ViewPager android:id="@+id/pagerDay" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" /> [ . . . ] </LinearLayout> </FrameLayout> And the pages are FrameFragment like: <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="match_parent" android:layout_height="wrap_content" > [ . . . ] </FrameLayout> Had anyone the same behavior? Any suggestion to solve it? Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

