底部对话框片段

时间:2018-03-26 19:10:37

标签: java android

来自 MapFragment

ScheduleFragment scheduleFragment = new ScheduleFragment();
scheduleFragment.showNow(getChildFragmentManager(),scheduleFragment.getTag());

ScheduleFragment

public class ScheduleFragment extends BottomSheetDialogFragment {

public ScheduleFragment(){

}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    // Inflate the layout for this fragment
    View view=inflater.inflate(R.layout.fragment_schedule, container, false);
    return view;
}

}

现在我遇到的问题是每当应用程序恢复时,模态底部图像似乎正在从隐藏状态更改为扩展状态是否有任何修复?

0 个答案:

没有答案