例如,我点击此片段内的按钮,片段替换为其他片段。活动保持不变。
public class cat_beauty extends Fragment {
public cat_beauty(){}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.ca_beauty, container, false);
return rootView;
}
}