I just upgraded to cordova 4.0 for android. I used the following post to load a cordova webview inside a fragment..
This code no longer works after upgrading to cordova 4.0 from 3.*
Specifically, an exception is throw on this 2nd line...
LayoutInflater localInflater = inflater.cloneInContext(new CordovaContext(getActivity(), this));
View v = localInflater.inflate(R.layout.dialog_webview, container, false);
Where this tag is in my layout file...
<org.apache.cordova.CordovaWebView
android:layout_below="@+id/DialogTopBar"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:id = "@+id/myWebView"
/>
Exception message...
android.view.InflateException: Binary XML file line #43: Class is not a View org.apache.cordova.CordovaWebView
Does anyone have any ideas on how to get around this?
It does look like since cordova 4.0, the CordovaWebView class was changed from..
public class CordovaWebView extends WebView
to
public interface CordovaWebView