I am trying to make custom class for Vertical parallax:
CCVerticalParallaxNode.java
Please check below class to access CCVerticalParallaxNode class in your scene:
TestScene.java
Please use cocos2d-android library to build this demo.
You can find full source code on GitHub.