Sha256: 7adfbdb821a68f4988585d3e4c50f25f80c221391add7eaf5d619f54a34c0b25

Contents?: true

Size: 302 Bytes

Versions: 9

Compression:

Stored size: 302 Bytes

Contents

module UI
  class Web < UI::View
    def load_html(str)
      proxy.loadData(str, 'text/html', nil)
    end

    def proxy
      @proxy ||= begin
        web_view = Android::Webkit::WebView.new(UI.context)
        web_view.settings.javaScriptEnabled = true
        web_view
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
motion-flow-0.1.8 flow/ui/android/web.rb
motion-flow-0.1.7 flow/ui/android/web.rb
motion-flow-0.1.6 flow/ui/android/web.rb
motion-flow-0.1.5 flow/ui/android/web.rb
motion-flow-0.1.4 flow/ui/android/web.rb
motion-flow-0.1.3 flow/ui/android/web.rb
motion-flow-0.1.2 flow/ui/android/web.rb
motion-flow-0.1.1 flow/ui/android/web.rb
motion-flow-0.1 flow/ui/android/web.rb