refactored view to use dimensions, added tests
replaced ndk with java class