Update View.java

Missing method that is available in Titanium.