如果我点击FridgeWarningStatus Fragment
那么它将占据全屏?我怎样才能做到这一点???
请任何人帮助我提前感谢
public class FridgeContainer extends Fragment {
private View view;
private FridgeTimerStatus fridgeTimerStatus;
private FridgeWarningStatus fridgeWarningStatus;
private FridgeStatus fridgeStatus;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
view = inflater.inflate(R.layout.fridge_container,container,false);
fridgeWarningStatus = (FridgeWarningStatus)getFragmentManager().findFragmentById(R.id.fridge_timer_status);
fridgeTimerStatus = (FridgeTimerStatus)getFragmentManager().findFragmentById(R.id.fridge_timer_status);
fridgeStatus = (FridgeStatus)getFragmentManager().findFragmentById(R.id.fridge_status);
return view;
}
答案 0 :(得分:0)
如果你想要全屏,为什么不使用Activity而不是Fragment?
如果您想使用片段然后删除活动的操作栏,请设计您的片段视图。
如果有任何请求,请询问。
答案 1 :(得分:0)
换句话说,你想让FridgeWarningStatus填满屏幕吗?您也可以发布文件R.layout.fridge_container?