Android Fragment e getWindow ()

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

}

Estou usando um webView e a class se estende do Fragment. Como posso usair getWindow () aqui?

One Solution collect form web for “Android Fragment e getWindow ()”

você pode usair getActivity().getWindow()
esta getActivity() retornairá a atividade associada a este fragment.

Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.