mogoweb / chromium_webview

Android WebView wrapper based on chromium
http://mogoweb.github.com
BSD 3-Clause "New" or "Revised" License
514 stars 160 forks source link

Replaceing chromium webview in fragment activity #14

Closed VeeruPV closed 9 years ago

VeeruPV commented 10 years ago

Hi there, Thanks a lot for this wonderful class. Solved my problems with socket based web pages. I have successfully replaced webview with chromium webview. However, my webview was a fragment and i was replacing it with another fragment on a button click. This does not work any more with chromium webview.

                    FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
                    Fragment fragment=new GiftItemsListActivity();
                    ft.setCustomAnimations(R.anim.slide_in_left, R.anim.slide_out_right,R.anim.slide_in_right,R.anim.slide_out_right);
                    ft.add(R.id.webView, fragment);
                    ft.addToBackStack(null);
                    ft.commit();
                    giftShown=true; 

The above code was working fine with a basic webview. Any suggestions?

VeeruPV commented 10 years ago

Hi there, solved it by adding a relative layout on top of the webview and replace the relative layout instead of the webview.

Thanks