您好,我正在使用android.I。我曾试图将布局膨胀到片段中,但它在代码中显示错误"method getLayoutInflater() is undefined for the class“。如何访问片段中的布局?请帮帮我我是android .Thanks的新手 View header = (View)getLayoutInflater().inflate(R.layou
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());protected View mView
它在onViewCreated中初始化。它们为空有什么特殊的原因吗?我假设这是因为mView --但我不确定。void android.widget.LinearLayout.addView(android.view.View)' on a