Fixed NPE when parent view cannot be found from activity (e.g. in DialogFragment). Setting parent manually now inits the position in window.
Added Javadoc for init methods with parameter explanation.
Fixed min=max initial rotation exception that happened with nextInt(0).
Fixed NPE when parent view cannot be found from activity (e.g. in DialogFragment). Setting parent manually now inits the position in window. Added Javadoc for init methods with parameter explanation. Fixed min=max initial rotation exception that happened with nextInt(0).