Step by step instructions to install NativeCSS.
Install NativeCSS library as Maven
Copy Jar into your project’s libs folder
Add NativeCSS Jar as dependency to your app’s build.gradle
Copy startup code your Application (or main activity)Older Android versions 2.3 to 3.2 require additional installation.
All activities must implement onResume() and onDestroy() as below.
This is due to lack of support for the ActivityLifecycleCallbacks before 4.0.
We recommend extending the base Activity classes to implement these methods only once. Alternatively, this github project has tried to simplify this process.
Add initial.css file
Run your app in Android Studio
Edit CSS from Studio
Edit with Studio GUI