Android Fragment和getWindow()

public class AircraftFragmentTab extends Fragment{ private String ac; public AircraftFragmentTab(String AC){ ac = AC; } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View aircraftView = inflater.inflate(R.layout.acdetails, container, false); ??? getWindow().setLayout(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT); WebView wv = (WebView) aircraftView.findViewById(R.id.webac); wv.getSettings().setJavaScriptEnabled(true); wv.loadUrl("http://ABCD/ACInfo.aspx?AC=" + ac); return aircraftView; } 

}

我使用的WebView和类从片段延伸。 我如何在这里使用getWindow()?

Solutions Collecting From Web of "Android Fragment和getWindow()"