Git Product home page Git Product logo

Comments (6)

AleckWei avatar AleckWei commented on June 24, 2024

版本号是最新的 3.0.1

from zxinglite.

jenly1314 avatar jenly1314 commented on June 24, 2024

我的项目涉及多语言。其中一种是希伯来语,它是从右到左的文案方向的。 我在xml中设置了 vvLabelText 后,xml的预览就明显是往右边靠了,不是居中的。 希伯来语异常

目前 LabelText 的内容只是简单的通过 draw 绘制显示的,如果你对此有更多的要求,完全可以使用 TextView,直接将 TextView盖在布局上来显示你的文本信息即可规避此问题。

from zxinglite.

AleckWei avatar AleckWei commented on June 24, 2024

emmm,我也试过使用TextView去覆盖在ViewFinderView上面,但是好像没法完美适配到扫描框的下方。你这里有什么好的办法吗?

from zxinglite.

jenly1314 avatar jenly1314 commented on June 24, 2024

emmm,我也试过使用TextView去覆盖在ViewFinderView上面,但是好像没法完美适配到扫描框的下方。你这里有什么好的办法吗?

有的,我也是换算的;你只需要知道屏幕的宽高,扫描框的高度(默认为:screenWidth * vvFrameRatio;vvFrameRatio默认值为:0.625)和扫描框的位置(默认:居中)就能换算出来提示内容的具体位置。

from zxinglite.

AleckWei avatar AleckWei commented on June 24, 2024

emmm,我也试过使用TextView去覆盖在ViewFinderView上面,但是好像没法完美适配到扫描框的下方。你这里有什么好的办法吗?

有的,我也是换算的;你只需要知道屏幕的宽高,扫描框的高度(默认为:screenWidth * vvFrameRatio;vvFrameRatio默认值为:0.625)和扫描框的位置(默认:居中)就能换算出来提示内容的具体位置。

了解了,那我往这个方向上试试

from zxinglite.

AleckWei avatar AleckWei commented on June 24, 2024

ok,按照大佬提供的思路解决了

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.