title: What determines initial Canvas dimensions in a View?
body: <p>I'm working with the 1.6 version of the ZXing barcode scanner code.</p>
  
  <p>Although the version of this app from the Android Market (3.53) runs fine on my Incredible, the ViewFinderView looks wrong when I compile it myself (3.5beta).</p>
  
  <p>I have found that the default canvas size of the ViewFinderView (which fills the entire screen) is 533x320, while the actual screen dimensions are 800x480.</p>
  
  <p>So in the onDraw method, the ViewFinderView is assuming screen coordinates for the viewfinder rectangle, but applying them in the canvas coordinates of onDraw. This results in the viewfinder getting drawn too far and too big in the x and y dimensions.</p>
  
  <p>So what determines that actual dimensions of the canvas your View gets?  In my case, the canvas is scaled down by a third compared to screen coordinates. I can't find any differences in the code that might affect this between versions 3.5beta and 3.53.</p>