Вверх ↑
Ответов: 118
Рейтинг: 0
#1: 2021-05-06 05:10:51 ЛС | профиль | цитата
GreM писал(а):
И чего я только не попробовал... В результате сработал только такой вариант:
файл с html-кодом надо положить в res\raw
картинка может лежать в res\raw либо в res\drawable (возможно и в любой папке в res, нету сил пробовать)

Add(MainActivity,4101868,203,203)
{
Left=0
Top=0
Width=500
Height=400
BorderStyle=3
AppName="test_webview"
Package="hiasm.test_webview"
VersionCode=1
Version="1.0"
Compatibility=6
Caption="WebView"
AppIcon=[]
SysName=""
DefaultLayout="(empty)"
IntentFilter=#
Theme=0
CustomTheme=""
BackgroundImage="(empty)"
ProcName=""
link(onCreate,5739450:doLoadURL,[])
}
Add(WebView,5739450,287,203)
{
Left=10
Top=20
Width=355
Height=295
Align=0
Color=-16777201
LayoutManager="(empty)"
Weight=0
OffsetX=0
OffsetY=0
UnitsX=0
UnitsY=0
gVertical=0
gHorizontal=0
gFill=0
HeightMode=1
WidthMode=1
FixedHeight="40px"
FixedWidth="100px"
MinHeight=""
MinWidth=""
mLeft=""
mTop=""
mRight=""
mBottom=""
pLeft=""
pTop=""
pRight=""
pBottom=""
Alpha=1
Visibility=0
Clickable=1
Focusable=1
Enabled=1
ContextMenu="(empty)"
BackgroundImage="(empty)"
Background=""
ViewStyle=""
Animation="(empty)"
Font=[MS Sans Serif,8,0,0,1]
AutoSize=0
ChromeClient="(empty)"
DefaultURL=""
MIMEType="text/html; charset=UTF-8"
UserAgent=""
AllowContentAccess=1
AllowFileAccess=1
BlockNetImages=0
BlockNetLoads=0
AutoLoadImages=1
ZoomSupport=1
ZoomCtrlsVisible=0
JavaScript=0
OpenLinks=1
LightTouch=0
PluginState=0
SaveFormData=1
SavePasswords=1
DefaultFontSize=16
link(URL,2119183:GetData,[])
}
Add(File2project,4669970,609,231)
{
Name="aicon.png"
Path="res\raw"
Type=0
File=[89504E470D0A1A0A0000000D4948445200000100000001000802000000D3103F31000001376943435041646F6265205247422028313939382900002891958FBF4AC3501487BF1B45C5A15608E2E0702751506CD5C18C495B8A2058AB4392AD49439562126EAE7FFA108E6E1D5CDC7D022747C141F1097C03C5A98343840C058BDFF49DDF391CCE01A362D79D865186F358AB76D391AEE7CBD917669802804E98A576AB7500102771C418DFEF0880D74DBBEE34C6FB7F321FA64A032360BB1B6521880AD0BFD2A9063104CCA09F6A100F80A94EDA35104F40A997FB1B500A72FF004ACAF57C105F80D9733D1F8C39C00C725F014C1D5D6B805A920ED459EF54CBAA6559D2EE2641248F07998ECE33B91F87894A13D5D15117C8EF0360311F6C371DB956B5ACBDF57FFE3D11D7F3656E9F4708402C3D17594178A12E7F55183B93EB62C770190EEF617A5464BB3770B7010BB745B65A85F2163C0E7F00C0C64FFDF3533FC8000000097048597300000B1300000B1301009A9C18000006BD69545874584D4C3A636F6D2E61646F62652E786D7000000000003C3F787061636B657420626567696E3D22EFBBBF222069643D2257354D304D7043656869487A7265537A4E54637A6B633964223F3E203C783A786D706D65746120786D6C6E733A783D2261646F62653A6E733A6D6574612F2220783A786D70746B3D2241646F626520584D5020436F726520352E362D633134382037392E3136343033362C20323031392F30382F31332D30313A30363A35372020202020202020223E203C7264663A52444620786D6C6E733A7264663D22687474703A2F2F7777772E77332E6F72672F313939392F30322F32322D7264662D73796E7461782D6E7323223E203C7264663A4465736372697074696F6E207264663A61626F75743D222220786D6C6E733A786D703D22687474703A2F2F6E732E61646F62652E636F6D2F7861702F312E302F2220786D6C6E733A786D704D4D3D22687474703A2F2F6E732E61646F62652E636F6D2F7861702F312E302F6D6D2F2220786D6C6E733A73744576743D22687474703A2F2F6E732E61646F62652E636F6D2F7861702F312E302F73547970652F5265736F757263654576656E74232220786D6C6E733A70686F746F73686F703D22687474703A2F2F6E732E61646F62652E636F6D2F70686F746F73686F702F312E302F2220786D6C6E733A64633D22687474703A2F2F7075726C2E6F72672F64632F656C656D656E74732F312E312F2220786D703A43726561746F72546F6F6C3D2241646F62652050686F746F73686F702032312E30202857696E646F7773292220786D703A437265617465446174653D22323032312D30352D30315432333A34393A34362B30353A30302220786D703A4D65746164617461446174653D22323032312D30352D30325431393A35353A34342B30353A30302220786D703A4D6F64696679446174653D22323032312D30352D30325431393A35353A34342B30353A30302220786D704D4D3A496E7374616E636549443D22786D702E6969643A65646634346237302D346333342D376334332D393165382D6539663963623732633063652220786D704D4D3A446F63756D656E7449443D2261646F62653A646F6369643A70686F746F73686F703A36636365663337612D343634392D366334362D386235352D3939326239336535356333312220786D704D4D3A4F726967696E616C446F63756D656E7449443D22786D702E6469643A61376539613239382D313663612D333134622D623534342D616561333130363562633433222070686F746F73686F703A436F6C6F724D6F64653D2233222070686F746F73686F703A49434350726F66696C653D2241646F62652052474220283139393829222064633A666F726D61743D22696D6167652F706E67223E203C786D704D4D3A486973746F72793E203C7264663A5365713E203C7264663A6C692073744576743A616374696F6E3D2263726561746564222073744576743A696E7374616E636549443D22786D702E6969643A61376539613239382D313663612D333134622D623534342D616561333130363562633433222073744576743A7768656E3D22323032312D30352D30315432333A34393A34362B30353A3030222073744576743A736F6674776172654167656E743D2241646F62652050686F746F73686F702032312E30202857696E646F777329222F3E203C7264663A6C692073744576743A616374696F6E3D227361766564222073744576743A696E7374616E636549443D22786D702E6969643A63373130313534612D623661622D303434302D613366382D316566613837653530303265222073744576743A7768656E3D22323032312D30352D30315432333A34393A34362B30353A3030222073744576743A736F6674776172654167656E743D2241646F62652050686F746F73686F702032312E30202857696E646F777329222073744576743A6368616E6765643D222F222F3E203C7264663A6C692073744576743A616374696F6E3D227361766564222073744576743A696E7374616E636549443D22786D702E6969643A65646634346237302D346333342D376334332D393165382D653966396362373263306365222073744576743A7768656E3D22323032312D30352D30325431393A35353A34342B30353A3030222073744576743A736F6674776172654167656E743D2241646F62652050686F746F73686F702032312E30202857696E646F777329222073744576743A6368616E6765643D222F222F3E203C2F7264663A5365713E203C2F786D704D4D3A486973746F72793E203C2F7264663A4465736372697074696F6E3E203C2F7264663A5244463E203C2F783A786D706D6574613E203C3F787061636B657420656E643D2272223F3E54C9C31400000D4649444154789CEDDD6D6C14D51706F0D3CE9F74690596644336651303961A28820442697911038D9006440968110504014128EFC16FC6184C48DDA5C83B242D4A2D85F2C108412A0413A0083131B42635482B21A52DA0E902D9BAC196F97F8040D1BEEDDC3B7B66EE7D7EDF67FA2CE5C969BB67E7120100000000000000000000000000000080BD962C59C21D0180CFB973E7028100770A505F2277808E79BDDED5AB5773A70060525D5D5D5F5FEFF178B88380E21C3A018868E0C0812B56ACE04E01C0A1BABADA34CDAAAA2AEE20A038E74E00227AE9A597DE7AEB2DEE14A03247178088962F5FCE1D0120EE1EFD08649A666B6BEBF8F1E3B9E380B29C3E010CC358B3660D770A80F87A32014CD38C4422696969DC89404D4E9F0044949C9CBC76ED5AEE140071D47E0298A679E7CE1DAFD7CB1D0A14E4820940443E9F0FBF098046FE35014CD3ACADADE50E050A72C70420A2C18307633302A4734D0188E8FDF7DFE78E00AA715301468F1E3D6BD62CEE14A0143715808856AE5CC91D01C07EFFFD25F8C96644565616773A5087CB26806118F9F9F9DC29006CD6D904C06604C8E5B2094044C9C9C9EBD7AFE74E0160A72E260036234022F74D0022F2F97C588F0395753D014CD3ACABABE3CE082A70E50420A2418306E13D0110E7D60210D1E2C58BB92380EBB9B800A3468D7AE38D37B85380BBB9B80084CD085055B7BF043FD98CC8CECEE60E0B2EE6EE09601806FE1E0A0AEAE104304DB3A5A565E8D0A1DC79C1ADDC3D0188A877EFDEEBD6ADE34E012055CF2780699ACDCDCD7EBF9F3B32B892EB27001179BD5E0C01504A4C13C034CD9B376FA6A4A470A706F751610210516A6A2A8E54020B142900112D5CB8903B02B88F3A05484F4FC77610C44A9D02104ED380D82955803163C6E0C1411013A50A4044AB56ADE28E006EA25A015E79E59589132772A700D750AD003852095410EB1B61ED45A351ACC7410FA936018828292969C3860DDC290004884C00D334C3E1706A6A2AF78B00175070021051BF7EFDB01E072E2638014CD36C6C6CC47A1C744BCD0940447EBF1F7F0E826E295B00C27A1CF480CA05484B4B5BBA7429770A7034950B40442800744DF1028C1E3D1A4F8F832E285E0022C2914AD005F50B3071E2C4A953A772A7008752BF00898989787A1C7446FD0210514E4E4E666626770A70222D0AD0AB572F0C01E890160520A299336762471AFE4B9702F4EEDD7BE3C68DDC29C07112B80374ACBABA7AF8F0E172EF79FFFEFD61C386D5D7D7CBBD6DB74A4A4A5E78E1056BD78E1B374EE44B8BFC33262438F4FF8616C4B7413BB47DFB7677BD16F77E69B7D0E547A047F2F2F270C236B4A757017C3E1F7E1380F6F42A0011BDF7DE7BF8A00C3CA15D010281C0471F7DC49D029C42BB02104ED88676742CC09021433EFCF043EE14E0083A168088962D5BC61D011C41D3028C1C39322F2F8F3B05F0D3B40044845F8581742E405656566E6E2E770A60A66F01121212F0E020D0B70044F4EAABAF4E9A34893B0570D2BA008661E083329AD3BA0044347DFAF4975F7E993B05B0D1BD00384C4073BA17808866CD9A3578F060EE14C00305A09494944D9B3671A7001E280011D1DCB973070C18C09D0218A0004444FDFBF7C76F027A42011E7BE79D77F041190DA1008FA5A6A6E28D610DA1004FE144190DA1004FA5A5A5AD58B1823B05C4150AF00C9C28A31B050BD0D6D666F9DA912347BEFDF6DB12C380C3295880D3A74F8B5C8E0FCA6845C1028442219127FB656767BFF6DA6B12F3809329588053A74E5556565ABE1C1F94D18A820520A29D3B778A5C8E1365F4A166014A4B4BABAAAA2C5F6E18C6FAF5EB25E601C752B30044B47FFF7E91CB67CC9881136574A06C0176ECD851575767F9728FC783F5381D285B00222A2E2E16B97CF6ECD981404052167028950B100C069B9A9A2C5FDEAF5F3FFC26A03C950B1089444A4A4A44EE306FDE3C9C28A336950B4044C160301C0E5BBE7CC08001F9F9F9F2E280E3285E80868686F2F272913B2C5AB4C8E3F1C8CA034EA378018828180CB6B4B458BEFCF9E79F5FBE7CB9C43CE028EA17A0A6A6E6BBEFBE13B9C3071F7C202B0C388DFA0520A25028F4CF3FFF58BE7CD8B0610B162C9098079C438B025CBA744970471A472AA94A8B0210D1B66DDB4476A433333367CE9C29310F38842E05A8A8A8B870E182C81D56AF5E2D2B0C38872E0520E11DE9C99327E33001F5685480C3870F5FB972C5F2E58661AC5BB74E621E70028D0A40C23BD2D3A64DC361028AD1AB003B77EEACADADB57C79525212D6E314A35701487847FAF5D75FC761022AD1AE00A150A8B1B1D1F2E57DFAF4C11050897605884422870E1D12B9030E135089760520A2828202911D699FCF87E7A62843C702DCBE7DFBC89123227778F7DD777198801A742C00117DF1C517223BD2814060E5CA9512F300174D0B70F5EA55C11DE9C58B17CB0A038C342D0011058341911DE9F4F4747C4E4001FA16E0F2E5CB3FFCF083C81DB023AD007D0B4044858585223BD2A3468D9A33678EC43C107F5A17A0A2A2E2FCF9F32277C061026EA775014878477AC28409393939B2C240FCE95E80B2B2B25F7EF9C5F2E58989897853CCD5742F0009EF48E7E4E48C1D3B5656188833148076EFDE7DEDDA35CB97F7EAD50B1F94712F148088A8A8A848E4F2193366A4A7A7CB0A03F18402101115161636343458BE3C3939198709B8140A4024E339D273E6CCF1FBFDB2F240DCA0008F1514143437375BBEDCEBF5E283326E84023C76FBF6EDA3478F8ADC61FEFCF9D891761D14E029C11D69BFDF8F3F07B90E0AF094F88EF4A2458B648581F840019E21B8233D68D0A055AB5649CC037643019E21BE23BD64C9125961200E50807F13DC911E3162C4FCF9F325E6015BA100FF26BE238D0FCAB8080AD0815DBB76895C9E9595959B9B2B2B0CD80A05E880E073A41312127098805BA0001D13DC919E32654A7676B6AC30601F14A06382CF91360C039B11AE8002744AF039D2B9B9B919191992B2805D50804E8542A1A6A626CB972725256147DAF950804E893F477AF6ECD9814040561EB0030AD095502824F21CE93E7DFA6CDCB8515E1C900F05E84A4343437979B9C81DE6CD9B671886AC3C201D0AD08D6030F8F7DF7F5BBEDCE7F3BDF8E28B12F3805C2840376A6A6A0477A41313F18FEC5CF8DE742F180CB6B6B672A7005BA000DDBB74E9D2E9D3A7B953802D50801ED9B66D9BC88E3438160AD023A74E9DBA78F122770A900F05E829C11D69702614A0A74A4A4AAAAAAAB853806428400C0E1C38C01D0124430162F0E5975FFEF1C71FDC2940A6FF71077099A2A2A24F3FFD943B453C38B6EAADADAD0B162CA8ACACE40E62A7EAEA6AD32A5B83F5EDDBB7A9A9C972B638BF16917F46C7FAEAABAFA47C2B1FC18F40B1B977EFDE37DF7CC39D425FD7AF5F5FBB76ADC41BA200310B068377EFDEE54EA1A3870F1F6EDEBCF9AFBFFE92784F142066F5F5F5C78E1DE34EA1A3B2B2B2B2B232B9F74401AC2828288846A3DC29F4D2D0D060C7C3B751002B6A6A6A8E1F3FCE9D4223A6697EFCF1C7221FD1EE0C0A605130186C6B6BE34EA18B6FBFFD56EE1F7F9E40012CBA78F1E2993367B85368E1D6AD5BF9F9F936DD1C05B06EFBF6ED2676A4EDF7C9279FDCB871C3A69BA300D69D3871E2A79F7EE24EA1B893274FEED9B3C7BEFBA3004276EFDECD1D41657FFEF9E79A356B6CFD12288090AFBFFEFAD75F7FE54EA1ACCF3EFBECEAD5ABB67E0914401476A46D72E6CC99C2C242BBBF0A0A206AEFDEBDD7AF5FE74EA19AE6E6E6F81C378802888A46A3070F1EE44EA19ACF3FFFBCA6A6863B051FC7AE4377C8EBF5DEBA754BDABEAFBCD7E2D275E8B367CF4AF9BEF404268004E170B8B4B4943B8522EEDEBD6BDFDB5EFF8502C851505070FFFE7DEE142AD8BA756B3C1F3EE0D08F44DEBC79F3B9E79EE34E1183473BD20B172EE40EF28C6834DAD2D2C29D2206972F5FDEB2650B770AB0242323231A8DCAFD6998FB3501C4E2D8B1632800E86BFCF8F1ADADAD2800E8ABA2A20205007DE5E6E63E7CF81005007D555656A2006E81F701E4C38E34E84ED60E02F7EB501F26802DB0230D5AF3783C7575759800CE8709608B68345A5C5CCC9D02808FD7EB157F8E34F78B501F26805DC2E1309E230D5A0B0402E1701813C0C930016C84E74883EE860E1DDAD2D2820900FA3A72E4080A00FACACCCCB4BC23CD9D1D4086EFBFFF1E05007D4D9F3EDDDA8E3477700049CE9F3F8F0280BEF2F2F25000D0DA952B575000A7C11B61F1B37FFF7EEE0800AC6A6B6B31011C051320AEB0230D5A4B4949696C6CC404700E4C80B88A4422870E1DE24E01C0C7EFF7373737630238042640BC3535351D3D7A943B05009FF4F4F44824820900FA2A2D2D4501405F63C68C79F0E0010A00FA3A7EFC380A00FA9A3A756A5B5B1B0A00FAFAF1C71F5100D0D79B6FBE890280D67EFEF967148011DE086386C3044077BFFDF61B2600174C007E384C00B4E6F1786EDCB88109C00213805F341A3D78F020770A003E5EAFF7CE9D3B9800F18709E008E170B8B4B4943B05009F402070EFDE3D4C00D0575151110A00FACAC8C88846A32800E8ABBCBC1C05007D656767B73F4C803B0E40DCB53F4C803B0B40DCB53F4C803B0B00870B172EA000A0AF27870970070160F2E83001EE14EAC32A8443EDDBB78F3B0200ABDF7FFF9D3B82FA0CEE00D0A9BE7DFB9E3B778E3B050093949414EE080000000000000000000000000000006EF37F25C174BF8A7DE79F0000000049454E44AE426082]
JavaCode=#
AddHint(-20,47,62,13,Name)
}
Add(File2project,3592232,609,119)
{
Name="index.html"
Path="res\raw"
Type=1
File=[]
JavaCode=#6:<html>41: Пример &lt;img src="aicon.png"&gt;|15: <br> |28: <img src="aicon.png">|11: <br>|65: Пример &lt;img src="file:///android_res/raw/aicon.png"&gt;|11: <br>|52: <img src="file:///android_res/raw/aicon.png">|11: <br>|70: Пример &lt;img src="file:///android_res/drawable/icon0.png"&gt;|11: <br>|57: <img src="file:///android_res/drawable/icon0.png">|7:</html>|
AddHint(50,7,62,13,Name)
}
Add(DoData,7955699,343,119)
{
Data=String(file:///android_res/raw/index.html)
StrResName=""
link(onEventData,2119183:doData,[(387,125)(387,113)(275,113)(275,125)])
AddHint(56,8,185,13,Data)
}
Add(EventFromData,2119183,287,119)
{
link(onEvent,7955699:doData,[])
}

|
У меня странная вещь происходит компонент файлы в проект не добавляет
карма: 0

0