Android 碎片';s onCreateView在API 17和18上调用,但在API 16或更旧版本上不调用

Android 碎片';s onCreateView在API 17和18上调用,但在API 16或更旧版本上不调用,android,fragment,Android,Fragment,我有一个活动,布局添加了一个片段: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ... <fragment ... /> <TextView ... /> <ScrollView ... > <RelativeLayout ... > <fragment .... /> <frag

我有一个活动,布局添加了一个片段:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ...
<fragment  ... />
<TextView ... />
<ScrollView ... >
    <RelativeLayout ... >
        <fragment .... />

        <fragment
            android:id="@+id/namesFragment"
            android:name="com.myapp.NamesFragment"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/xxx"
            tools:layout="@layout/fragment_names" />
    </RelativeLayout>
</ScrollView>