[TIMOB-1181] Images using Ti.UI.createImageView vs Ti.UI.createWebView
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:55:26.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.4.0 |
Components | Android |
Labels | android, defect |
Reporter | Tony Guntharp |
Assignee | Don Thorp |
Created | 2011-04-15T02:46:01.000+0000 |
Updated | 2011-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
File | Date | Size |
---|---|---|
image_404.jpg | 2011-04-15T02:46:02.000+0000 | 23942 |
test.zip | 2011-04-15T02:46:04.000+0000 | 6090129 |
(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...