hanfengsan / light Goto Github PK
View Code? Open in Web Editor NEW动画碟片销量在线/明灯/名作之壁/......
License: Apache License 2.0
动画碟片销量在线/明灯/名作之壁/......
License: Apache License 2.0
少年,不加开源协议很危险啊
项目中包含了多个生成的APK,导致项目无意义的增大了很多,给其他开发者克隆带来麻烦。
sakura.do的返回结果中,有关于碟片类型的字段。
例如
"type":1
"amzver":false
其中type的取值为0~5,分别对应。
CD, BD, DVD, BD_BOX, DVD_BOX, OTHER
amzver的取值为true或false
分别代表是否为尼限定版本
这个文件 app/src/main/java/com/yakami/light/adapter/FRankAdapter.java
的第73 到 92行,可以根据这两个字段做更精确的判定。
尤其是DVD BOX和BD BOX的判定会更精确,因为DVD BOX名字中不会有[DVD]。
String name = rank.getName();
if (!name.contains("尼限定") && !name.contains("[DVD]")) {
newHolder.tagView.setVisibility(View.GONE);
}
if (name.contains("尼限定")) {
newHolder.tagView.setVisibility(View.VISIBLE);
newHolder.tagView.setText("尼限");
newHolder.tagView.setBgColor(mRes.getColor(R.color.PeterRiver));
}
if (name.contains("[DVD]")) {
newHolder.tagView.setVisibility(View.VISIBLE);
newHolder.tagView.setText("DVD");
newHolder.tagView.setBgColor(mRes.getColor(R.color.emerald));
}
if (name.contains("尼限定") && name.contains("[DVD]")) {
newHolder.tagView.setVisibility(View.VISIBLE);
newHolder.tagView.setText("尼DVD");
newHolder.tagView.setBgColor(mRes.getColor(R.color.soft_purple));
}
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.