caf
cordova-android-fragments
npm i cordova-android-fragments
caf

cordova-android-fragments

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.

by Rajiv Narayana Singaseni

0.1.1 (see all)License:ISCTypeScript:Not Found
npm i cordova-android-fragments
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

Downloads/wk

8

GitHub Stars

11

LAST COMMIT

6yrs ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

1

OPEN PRs

0
VersionTagPublished
0.1.1
latest
6yrs ago
No alternatives found
No tutorials found
Add a tutorial