lib/droiuby/support/fixnum.rb in droiuby-0.2.0 vs lib/droiuby/support/fixnum.rb in droiuby-0.2.1

- old
+ new

@@ -5,7 +5,11 @@ end def to_px Java::com.droiuby.client.core.builder.ActivityBuilder.toPixelsFromDip(_current_activity, self) end + + def to_dip + (self / Java::com.droiuby.client.core.builder.ActivityBuilder.toDeviceIndependentPixels(_current_activity, 1)) + end end