import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class WebViewTabFragment extends Fragment {
// The public interface is used to send information back to the parent activity.
public interface NewTabListener {
public class WebViewTabFragment extends Fragment {
// The public interface is used to send information back to the parent activity.
public interface NewTabListener {
int tabNumber = arguments.getInt("tab_number");
// Inflate the tab's WebView. Setting false at the end of inflater.inflate does not attach the inflated layout as a child of container. The fragment will take care of attaching the root automatically.
int tabNumber = arguments.getInt("tab_number");
// Inflate the tab's WebView. Setting false at the end of inflater.inflate does not attach the inflated layout as a child of container. The fragment will take care of attaching the root automatically.
// Get a handle for the nested scroll WebView.
NestedScrollWebView nestedScrollWebView = tabView.findViewById(R.id.nestedscroll_webview);
// Get a handle for the nested scroll WebView.
NestedScrollWebView nestedScrollWebView = tabView.findViewById(R.id.nestedscroll_webview);