WebFragment webFragment = new WebFragment();
FragmentManager fm = getSupportFragmentManager();
FragmentTransaction ft = fm.beginTransaction();
ft.add(R.id.fl_webfragment, webFragment);
ft.commit();
<BUG>webFragment.loadUrl("https://www.baidu.com");
}</BUG>
@Override
public void onClick(View v) {
Intent intent = new Intent(this, WebActivity.class);

WebFragment webFragment = new WebFragment();
FragmentManager fm = getSupportFragmentManager();
FragmentTransaction ft = fm.beginTransaction();
ft.add(R.id.fl_webfragment, webFragment);
ft.commit();
Bundle bundle = new Bundle();
bundle.putString(WebFragment.EXTRA_URL, "https://www.baidu.com");
webFragment.setArguments(bundle);
}
@Override
public void onClick(View v) {
Intent intent = new Intent(this, WebActivity.class);
