Exemplo n.º 1
0
 private void init() {
   if (isInitialized) {
     return;
   }
   final int width = decodeService.getEffectivePagesWidth();
   final int height = decodeService.getEffectivePagesHeight();
   for (int i = 0; i < decodeService.getPageCount(); i++) {
     pages.put(i, new Page(this, i));
     pages.get(i).setAspectRatio(width, height);
   }
   System.out.println("ViewDroidDecodeService:" + pages.size() + " page:" + pageToGoTo);
   isInitialized = true;
   invalidatePageSizes();
   goToPageImpl(pageToGoTo);
 }