[안드로이드] Fragment 에서 findviewbyid 사용하기
·
IT기술 관련/모바일
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.secondefragment, container, false); mWebView = (WebView) view.findViewById(R.id.activity_main_webview); progressBar = (ProgressBar) view.findViewById(R.id.progressBar1); WebSettings webSettings = mWebView.getSettings(); webSettings.setJavaScriptEnabl..