:Fixed NullPointerException that occured because params was never set to new value after check
Merge pull request #46 from markuspfeiffer/ParamsNullReferenceException

Fix NPE where default layout params was not assigned locally.

Also pulls in some Gradle configuration. I expect it works so I am going to let this pass for now, though I shouldn't.