cannot find symbol method findViewById(int)

  • Replies:0
  • OpenNot stickiedUnanswered
  • Forum posts: 1

Apr 28, 2017 9:12:58 PM via Website

Hey guys i'm getting this error and my app is not running support me please !
here is the fragment activity code

package info.androidhive.materialtabs.fragments;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;

import info.androidhive.materialtabs.R;

public class OneFragment extends Fragment{
WebView webView;

public OneFragment() {
    // Required empty public constructor
}

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    // Inflate the layout for this fragment
    return inflater.inflate(R.layout.fragment_one, container, false);
    webView = (WebView) findViewById(R.id.webview);
    webView.getSettings().setBuiltInZoomControls(true);
    webView.loadUrl("file:///android_asset/web/index.html");
}

}

You can see my screen also here

image