@Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) { ((ViewGroup) findViewById(R.id.fl_bottom_blank)).removeAllViews(); } else { addNavigationOnBottom((ViewGroup) findViewById(R.id.fl_bottom_blank)); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); initView(); initData(); }
@Override public void onBackPressed() { if (webView.canGoBack()) webView.goBack(); else super.onBackPressed(); }