//在Activity中加载显示隐藏Fragment import android.app.Activity; import android.app.FragmentManager; import android.app.FragmentTransaction; import android.content.Intent; import android.os.Bundle; import com.commons.Config; import com.geluyawangluo.withthenight.activitymy.SignInActivity; import com.geluyawangluo.withthenight.fragment.CatFragment; import com.geluyawangluo.withthenight.fragment.ClassificationFragment; import com.geluyawangluo.withthenight.fragment.InformationFragment; import com.geluyawangluo.withthenight.fragment.MyFragment; import com.geluyawangluo.withthenight.fragment.ShoppingFragment; import com.geluyawangluo.withthenight.widget.ScreenManager; import com.geluyawangluo.withthenight.widget.TabBar; public class MainActivity extends Activity { private TabBar tabBar; private CatFragment catFragment; private ClassificationFragment classificationFragment; private InformationFragment informationFragment; private MyFragment myFragment; private ShoppingFragment shoppingFragment; private FragmentManager fm; private FragmentTransaction transaction; private Config config; private int ind=0; @Override
Android Fragment隐藏显示调用的方法
最新推荐文章于 2024-06-16 23:00:49 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)