Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1181] Images using Ti.UI.createImageView vs Ti.UI.createWebView

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:26.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsAndroid
Labelsandroid, defect
ReporterTony Guntharp
AssigneeDon Thorp
Created2011-04-15T02:46:01.000+0000
Updated2011-04-17T01:55:26.000+0000

Description

I'm trying to use Ti.UI.createWebView to display text and images in a tab. The text and HTML formatting works fine but the image resolves as 404/broken image. Attached is a screenshot of it running in simulator.

If the image is called using Ti.Ui.createImageView then the image does show but the developer is then dependent on absolute positioning as opposed to relative positioning which (relative positioning) is ideal.

Also attached is a quick and dirty example project.

Attachments

FileDateSize
image_404.jpg2011-04-15T02:46:02.000+000023942
test.zip2011-04-15T02:46:04.000+00006090129

Comments

  1. Don Thorp 2011-04-15

    (from [307ef5d409352ddf79b1f6ff029de521eec38bdb]) [#1181 state:resolved] Changed setting of html property on webview to not munge the document and allow access to local resources by setting the base url to file:///android_asset/Resources/ if a document is loaded with any external baseurl Android prevents access to local assets http://github.com/appcelerator/titanium_mobile/commit/307ef5d409352ddf79b1f6ff029de521eec38bdb"> http://github.com/appcelerator/titanium_mobile/commit/307ef5d409352...

JSON Source