Exemple #1
0
  private void createDefaultImageRegion() {
    if (mRootLayout == null) {
      throw new IllegalStateException("Root-Layout uninitialized.");
    }

    mImageRegion =
        new RegionModel(
            IMAGE_REGION_ID, 0, 0, mRootLayout.getWidth(), mLayoutParams.getImageHeight());
  }
Exemple #2
0
 public int getLayoutWidth() {
   return mRootLayout.getWidth();
 }