Skip to content

Commit

Permalink
Pointing out more code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
amol- committed Aug 1, 2015
1 parent 42dafc2 commit e4ac84d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/android_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ Declaring Sections
The application MainActivity must extend ``AXMActivity`` which creates the application main structure.
In the ``onCreate`` of your MainActivity initialize the root section by
calling ``NavigationSectionsManager.makeApplicationRootController()``
The ``makeApplicationRootController()`` accepts a JSONObject containing the section data::
The ``makeApplicationRootController()`` accepts a JSONObject containing the section data:

.. code-block:: java
JSONObject data = new JSONObject();
try {
Expand All @@ -27,7 +29,9 @@ titled ``Home``. Further sections can be pushed onto the navigation stack
using ``axemas.goto(dictionary)`` from Javascript.

An application with sidebar can also be created by passing a section data as
sidebar to the ``makeApplicationRootController``::
sidebar to the ``makeApplicationRootController``:

.. code-block:: java
JSONObject data = new JSONObject();
try {
Expand Down

0 comments on commit e4ac84d

Please sign in to comment.