iamyours / wandroid Goto Github PK
View Code? Open in Web Editor NEW首款适配玩Android、掘金、简书、CSDN、公众号文章黑夜模式,无广告,支持离线阅读,代码图片显示,关注内容本身,阅读体验升级。
Home Page: https://juejin.im/post/5d80a146518825300a3ec691
首款适配玩Android、掘金、简书、CSDN、公众号文章黑夜模式,无广告,支持离线阅读,代码图片显示,关注内容本身,阅读体验升级。
Home Page: https://juejin.im/post/5d80a146518825300a3ec691
小米手机 系统android10
app是通过你的掘金文章里的下载链接下载的。
这个的请求是在view层响应的observer。可以指导一下怎么统一处理吗
大神你好,看到你这个glide永久保存图片的文章。现在有一个新需求,不知道有没有方式解决,想实现在getPermanentDirectory() 里面的permanent_images目录下在新建不同的文件夹(如用bean对象的id作为文件夹名)用于保存不同Bean对象图片,请问可以实现这种需求吗?希望大神指点,感谢!
mWebView!!.webViewClient = object : WebViewClient() {
override fun shouldOverrideUrlLoading(view: WebView, url: String): Boolean {
view.loadUrl(url)
return true
}
override fun shouldInterceptRequest(view: WebView, request: WebResourceRequest): WebResourceResponse? {
return super.shouldInterceptRequest(view, request)
}
override fun shouldInterceptRequest(view: WebView, url: String): WebResourceResponse? {
if (url.startsWith("https://mp.weixin.qq.com/s")) {
val res = replaceCss(url, view.context)
val input: InputStream = ByteArrayInputStream(res.toByteArray())
return WebResourceResponse("text/html", "utf-8", input)
}
return super.shouldInterceptRequest(view, url)
}
}
}
private val rex = "(<style>)([\\S ]*)(</style>)"
private fun replaceCss(url: String, context: Context): String {
val pattern = Pattern.compile(rex)
val m = pattern.matcher(url)
if (m.find()) {
try {
val css = getString(context.assets.open("weixin/weixin.css"))
val sb = StringBuilder()
sb.append(m.group(1))
sb.append(css)
sb.append(m.group(3))
return url.replace(rex.toRegex(), sb.toString())
} catch (e: IOException) {
e.printStackTrace()
}
}
return url
}
错误信息怎么弹不出来?比如我登录,输入错误的账户密码,点击登录,没有任何错误信息提示
首先感谢大佬的开源项目,本来想运行一下学习一下,clone下来后发现报错了
报错信息:
.../res/layout/activity_main.xml:18: AAPT: error: attribute tabIndicatorHeight (aka io.github.iamyours.wandroid:tabIndicatorHeight) not found
这个是要添加 material 依赖吗?
我是一个初学者,如果问题有点小白,还请包涵😁
加载Router映射错误,是不是库有问题
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.