Giter VIP home page Giter VIP logo

light's People

Contributors

fuhaiwei avatar hanfengsan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

light's Issues

sakura.do的返回结果中,有关于碟片类型的字段。

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));
            }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.