fragment的跳转:
getSupportFragmentManager().beginTransaction().replace(R.id.vp_fragments, goodsFragment)
.commit();
用你的goodsFragment代替掉R.id.vp_fragments。 R.id.vp_fragments代表的view必须是可以填充子view的view。
fragment的跳转:
getSupportFragmentManager().beginTransaction().replace(R.id.vp_fragments, goodsFragment)
.commit();
用你的goodsFragment代替掉R.id.vp_fragments。 R.id.vp_fragments代表的view必须是可以填充子view的view。