private void createDefaultImageRegion() { if (mRootLayout == null) { throw new IllegalStateException("Root-Layout uninitialized."); } mImageRegion = new RegionModel( IMAGE_REGION_ID, 0, 0, mRootLayout.getWidth(), mLayoutParams.getImageHeight()); }
public int getLayoutWidth() { return mRootLayout.getWidth(); }