Git Product home page Git Product logo

Comments (4)

jenly1314 avatar jenly1314 commented on September 22, 2024

框外的遮罩,可直接通过布局配置,示例如下:

<com.king.zxing.ViewfinderView
        android:id="@+id/viewfinderView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:maskColor="@color/viewfinder_mask"/>

可参考:布局示例

框内遮罩是什么意思,不太理解你的意图。页面布局全部遮罩(布局遮一层)或者全部不遮罩(maskColor设置为透明)?

from zxinglite.

Demonhuang avatar Demonhuang commented on September 22, 2024

image

扫描框内颜色是透明的 现在是想要效果这样跟maskColor设置同样颜色

from zxinglite.

jenly1314 avatar jenly1314 commented on September 22, 2024

在前面的一次回复中,我好像已经给出了相应的解决方案。(maskColor设置为透明,然后布局遮一层。)

from zxinglite.

Demonhuang avatar Demonhuang commented on September 22, 2024

还有个问题我想请教下 就是扫描线我们的 会超过扫描框 我看咱们的是在框画的 这个有方法改变么 感谢回答

from zxinglite.

Related Issues (20)

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.