是否可以仅为应用程序的一部分使用phonegap?

Rap*_*ire 1 iphone android cordova

是否可以仅将Phonegap用于应用程序的一部分?

例如在Android上(但我的问题还包括其他操作系统),一个Activity可以使用Phonegap组件和本机组件(在同一屏幕中)吗?

谢谢.

Rap*_*ire 6

下面的小经验似乎满足了我的需求,至少在Android上.我想在其他操作系统上可以进行类似的黑客攻击.

public class TestPhonegapActivity extends DroidGap {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);        
        loadUrl("file:///android_asset/www/index.html");

        LinearLayout linearLayout = new LinearLayout(this);
        ((ViewGroup) appView.getParent()).removeView(appView);
        linearLayout.addView(appView);

        TextView textView = new TextView(this);
        textView.setText("Native");
        linearLayout.addView(textView);

        setContentView(linearLayout);
    }
}
Run Code Online (Sandbox Code Playgroud)