Coder Social home page Coder Social logo

Zoom the barcode about android HOT 7 CLOSED

catimaloyalty avatar catimaloyalty commented on August 19, 2024
Zoom the barcode

from android.

Comments (7)

TheLastProject avatar TheLastProject commented on August 19, 2024

Comment by brarcher
Friday Aug 03, 2018 at 01:41 GMT


Hm. So the barcode can be too big. Right now there is a max width 1500 pixels for 1D barcodes as 500 pixels for 2D barcodes. Maybe that is still too big for some devices.

Can you tell me what kind of device you have? I can create a simulator and see what you are seeing.

from android.

TheLastProject avatar TheLastProject commented on August 19, 2024

Comment by bracuphoth
Tuesday Aug 07, 2018 at 00:51 GMT


It's a Kindle Fire 8", the 2017 model

from android.

TheLastProject avatar TheLastProject commented on August 19, 2024

Comment by OmlineEditor
Sunday Jan 05, 2020 at 23:01 GMT


Add the ability to resize the barcode. This is a very useful and necessary feature. Now the size of the barcode is very large. The barcode size must be calculated based on the screen size in pixels and the pixel density (dots per inch) on the screen. then the size on all devices will be the same. add a new function to change the size of the barcode and calculate it using the formula

from android.

TheLastProject avatar TheLastProject commented on August 19, 2024

Comment by clach04
Saturday Jan 18, 2020 at 22:54 GMT


I've linked a few issues where if there was a manual zoom (maybe ideally pinch, but plus/minus zoom buttons might help) some of these issues would have at worst a workaround and in some cases final solution.

I agree it would be cool if there was code to handle DPI but manual override would solve multiple issues. Does this warrant a new issue/enhancement request?

  • manual zoom
  • improved automatic zoom that is DPI/real-world aware

from android.

TheLastProject avatar TheLastProject commented on August 19, 2024

Comment by TheLastProject
Saturday Jan 18, 2020 at 23:00 GMT


I think a new issue for DPI may be best, and just leaving this for zooming. Worst case scenario, one pull request can solve both issues if they end up being "too related". In my honest opinion, at least.

from android.

TheLastProject avatar TheLastProject commented on August 19, 2024

It would probably be easiest and most logical if one could do the "pinch to zoom" thing on the barcode itself in the view and just have it reset to the default size every time the view is opened.

from android.

TheLastProject avatar TheLastProject commented on August 19, 2024

Fixed in 45443ab with a draggable "SeekBar" so you can easily scale it however you want.

image
image

from android.

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.