The difference between the use of the fragment in the app Pack and the fragment in the V4 package
Source: Internet
Author: User
<span id="Label3"><p><strong>1. Error: The method replace (int, Fragment) in the type fragmenttransaction are not applicable for the arguments (int, myfragmen T</strong></p><p>Http://www.cnblogs.com/1114250779boke/p/3867494.html</p><p>In fact, the main problem is Getsupportfragmentmanager () rather than using Getfragmentmanager</p><p><strong>Differences in the use of fragment in the fragment and V4 packages in a 2.app package</strong></p><p>http://blog.csdn.net/a465456465/article/details/10415211</p><p><strong>3. When writing Fragment class, the import android.app.Fragment is often imported by default, and we need to manually modify it to import android.support.v4.app.Fragment;</strong></p><p>The difference between the use of the fragment in the app Pack and the fragment in the V4 package</p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service