hsllany / htmlnative Goto Github PK
View Code? Open in Web Editor NEW:page_with_curl:Use HTML/CSS to render Android View, Lua to control its logic (Not Webview)
License: Apache License 2.0
:page_with_curl:Use HTML/CSS to render Android View, Lua to control its logic (Not Webview)
License: Apache License 2.0
我用aide编译,但是没有通过。报了各种错误。然后还有一次编译过了,软件打不开,估计编译错了。。。能给一个预编译版本吗。。。
大佬您好,想问下这个项目后续还更新嘛?
我是一个RSS APP的作者,做了两年了,苦于技术无能一直在用Web View,一直想找一个原生渲染HTML的方案,今天终于找到了。我特别想用大佬的 Html Native 方案替代 Web view。但是看到 2017 年就不更新了感觉十分遗憾呀!
想问下大佬这个项目是怎么处理大量图片时的OOM问题呢,
另外想问问大佬未来有没有想法继续更新这个项目呢,期待回复
08-28 20:04:58.524 12413-12413/com.mozz.htmlnativedemo E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.mozz.htmlnativedemo, PID: 12413
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equalsIgnoreCase(java.lang.String)' on a null object reference
at com.mozz.htmlnative.HtmlTag.isGroupingElement(HtmlTag.java:86)
at com.mozz.htmlnative.HNRenderer.createView(HNRenderer.java:212)
at com.mozz.htmlnative.HNRenderer.renderInternal(HNRenderer.java:153)
at com.mozz.htmlnative.HNRenderer.render(HNRenderer.java:116)
at com.mozz.htmlnative.HNRenderThread$RenderTask$1.run(HNRenderThread.java:65)
06-01 11:40:40.249 13598-13615/com.mozz.htmlnativedemo E/AndroidRuntime: FATAL EXCEPTION: HNScriptRunner
Process: com.mozz.htmlnativedemo, PID: 13598
org.luaj.vm2.LuaError: local idTxt = document.getElementById("result")
function sendGet()
local l = {};
function l.onResponse(res)
idTxt.setAttrbute("text:"..res.body())
end
http.get("http://www.w3school.com.cn/", l)
end
function sendPost()
end
:7 attempt to call nil
at org.luaj.vm2.LuaValue.checkmetatag(LuaValue.java:3365)
at org.luaj.vm2.LuaValue.callmt(LuaValue.java:1997)
at org.luaj.vm2.LuaValue.call(LuaValue.java:1450)
at org.luaj.vm2.LuaClosure.execute(LuaClosure.java:357)
at org.luaj.vm2.LuaClosure.call(LuaClosure.java:142)
at com.mozz.htmlnative.script.lua.LHttp$1$1$1.run(LHttp.java:56)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)
如题
span should be the wrapper tag too.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.