Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rajivnarayana/cordovafragments

An android cordova plugin that provides a replacement activity to the default activity to start a cordova application with MainActivity as a Fragment Activity. Useful when you want to add native views on top of cordova webview.
https://github.com/rajivnarayana/cordovafragments

Last synced: about 1 month ago
JSON representation

An android cordova plugin that provides a replacement activity to the default activity to start a cordova application with MainActivity as a Fragment Activity. Useful when you want to add native views on top of cordova webview.

Awesome Lists containing this project

README

        

## Installation

```
cordova plugin add cordova-android-fragments
```

## Usage

Replace MainActivity in AndroidManifest.xml to "com.webileapps.fragments.MainActivity" and launch your application.

## How it works

This plugin comes bundled with a CordovaFragment (which is a Fragment similar to CordovaActivity) and a MainActivity that extends AppCompatActivity and adds CordovaFragment using FragmentTransactions.

## TODO

Create a hook that replaces activity name in AndroidManifesh.xml to launch MainActivity.java in our source directory