misszzz1 / misszzzreader Goto Github PK
View Code? Open in Web Editor NEW大钊阅读 基于android开发的轻量级、无广告、非盈利性质的在线小说阅读器
License: Apache License 2.0
大钊阅读 基于android开发的轻量级、无广告、非盈利性质的在线小说阅读器
License: Apache License 2.0
要是能支持本地导入就更好了
棉花糖小说网
www.mht.tw
如题!一直想找一个小说阅读器模仿一下 楼主这个项目非常适合学习
一通溯源之后发现是ui>home>bookstore>BookStorePersenter类里的getBooksData()
方法里的getBookRankList()
里url地址少了主站地址,把主站地址加上就ok了
完整代码如下
/**
* 获取小数列表数据
*/
private void getBooksData(){
BookStoreApi.getBookRankList(URLCONST.nameSpace_biquge+curType.getUrl(), new ResultCallback() {
@Override
public void onFinish(Object o, int code) {
bookList= (ArrayList<Book>)o;
mHandler.sendMessage(mHandler.obtainMessage(2));
}
@Override
public void onError(Exception e) {
TextHelper.showText(e.getMessage());
}
});
}
不清楚是环境问题还是依赖版本问题,这个问题应该是最近刚出现的
应用一打开就崩溃了
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.view.ViewPager.setAdapter(android.support.v4.view.PagerAdapter)' on a null object reference
at com.zhao.myreader.ui.home.MainPrensenter.init(MainPrensenter.java:50)
at com.zhao.myreader.ui.home.MainPrensenter.start(MainPrensenter.java:32)
at com.zhao.myreader.ui.home.MainActivity.onCreate(MainActivity.java:48)
主要是想看完了能保存,能换源的软件很多,但是基本没这个功能
导入无效,找不到
import com.zhao.myreader.databinding.ActivityMainBinding;
1,看项目应该是MVP模式,也在GitHub下载了好些个MVP的demo,对比发现你这个跟他们的不太一样。你这边是所有的逻辑都在P完成的,甚至还把V以及V里面的控件传到P,不太清楚这样做的好处,看其他demo好像不是这样。现在有点懵逼了
2,现在只有一个源,如何实现搜索多个源呢?麻烦指点一下。QQ:2990657442
获取到的数据:
<title>小说搜索</title> <style type="text/css"> *{margin:0;padding:0;} body{width:100%;background:rgb(240,240,240);} a:link{color:rgb(41,31,193);text-decoration:none;} a:visited{color:rgb(41,31,193);} a:hover{text-decoration:underline;color:rgb(41,31,193);} .navitor{width:100%;background:rgb(100,100,100);} .navitor .navitor-main{margin-left:20px;} .navitor a{display:inline-block;margin:14px 5px;color:rgb(255,255,255);} .navitor a:hover{color:rgb(240,240,240);} .search{width:100%;text-align:center;padding:20px 0px;margin-top:30px;} .search .search-main{} .search .search-main .keyword{padding:10px;width:360px;outline:none;} .search .search-main button{padding:10px 30px;border:1px solid rgb(200,200,200);background:rgb(100,100,100);color:rgb(255,255,255);} .result-list{padding:80px 0px 0px 120px;} .result-list .result-item{float:left;clear:both;margin:10px 0px;} .result-list .result-item .result-game-item-pic{float:left;margin:0px 10px 0px 0px;} .result-list .result-item .result-game-item-pic img{width:110px;height:150px;} .result-list .result-item .result-game-item-detail{width:100%;font-size:14px;} .result-list .result-item .result-game-item-detail .result-item-title{font-size:18px;} .result-list .result-item .result-game-item-detail .result-item-title a{font-size:18px;text-decoration:none;color:rgb(50,50,50);font-weight:normal;} .result-list .result-item .result-game-item-detail .result-item-title a:visited{} .result-list .result-item .result-game-item-detail .result-item-title a:hover{} .result-list .result-item .result-game-item-detail .result-game-item-info-tag{line-height:22px;} .search-result-page{width:100%;float:left;clear:both;text-align:center;padding:20px 0px;} .search-result-page .search-result-page-main{} .search-result-page .search-result-page-main a{display:inline-block;padding:6px 10px;border:1px solid rgb(100,100,100);font-size:14px;margin:0px 3px;background:rgb(100,100,100);color:rgb(255,255,255);} .search-result-page .search-result-page-main a:visited{} .search-result-page .search-result-page-main a:hover{} </style> <script type="text/javascript" src="https://apps.bdimg.com/libs/zepto/1.1.4/zepto.min.js"></script> <script type="text/javascript" src="/js/common.js"></script>解析逻辑:
TianLaiReadUtil#getBooksFromSearchHtml()内
Element node = doc.getElementById("results");
这个node解析出来是空
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.