(1) Android. App. Fragment: the minimum compatible version is Android: minsdkversion = "11"
Therefore, your application is not compatible with applications under 3.0.
You can use the <fragment> label. This is very important if you use android. support. v4.app. fragment cannot use the <fragment> label, and Android is thrown. view. inflateexception: Binary XML file line #7: Error inflating class fragment exception
(2) Android. Support. v4.app. Fragment: compatible with version 1.6. The <fragment> label cannot be used.ProgramIn the Add or replace method, you also need
Android-support-v4.jar
For details about how to use fragment, refer to the demo on the official website. The example is Android. App. Fragment. You can use the getfragmentmanager () and activity method,
If Android. Support. v4.app. fragment is used, the fragmentactivity must be inherited and getsupportfragmentmanager must be used.
Get the fragmentmanager with the same name but different package names.
(1) Android. App. Fragment: the minimum compatible version is Android: minsdkversion = "11"
Therefore, your application is not compatible with applications under 3.0.
You can use the <fragment> label. This is very important if you use android. support. v4.app. fragment cannot use the <fragment> label, and Android is thrown. view. inflateexception: Binary XML file line #7: Error inflating class fragment exception
(2) Android. Support. v4.app. Fragment: compatible with version 1.6. The <fragment> label cannot be used. You need to add the <fragment> label in the program by adding or replace.
Android-support-v4.jar
For details about how to use fragment, refer to the demo on the official website. The example is Android. App. Fragment. You can use the getfragmentmanager () and activity method,
If Android. Support. v4.app. fragment is used, the fragmentactivity must be inherited and getsupportfragmentmanager must be used.
Get the fragmentmanager with the same name but different package names.