Code example for Fragment

Methods: onViewCreated

0
    return v;
  } 
 
  @Override 
  public void onViewCreated(View view, Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);
    reload(); 
  } 
 
  @Override 
  public void onHiddenChanged(boolean hidden) {
    super.onHiddenChanged(hidden);
    if (hidden)
      viewContentWebView.stopLoading();
    else 
      reload(); 
  } 
 
  public void setUrl(String url) {
    this.url = url;
  }