2013-10-14 51 views

回答

1

這是非常簡單的,註釋代碼象下面這樣:

private class SizeChangedObserver implements CurlView.SizeChangedObserver { 
     @Override 
     public void onSizeChanged(int w, int h) { 
//   if (w > h) { 
       mCurlView.setViewMode(CurlView.SHOW_TWO_PAGES); 
//    mCurlView.setMargins(.1f, .05f, .1f, .05f); 
//   } else { 
//    mCurlView.setViewMode(CurlView.SHOW_ONE_PAGE); 
////    mCurlView.setMargins(.1f, .1f, .1f, .1f); 
//   } 
     } 
    }