Esempio n. 1
0
 @Override
 public void onResume() {
   super.onResume();
   if (!justCreated) {
     updateView();
   }
   justCreated = false;
 }
Esempio n. 2
0
  @Override
  public View onCreateView(
      LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    final Context context = getActivity();
    mQuranPageLayout = new QuranImagePageLayout(context);
    mQuranPageLayout.setPageController(this, pageNumber);
    mImageView = mQuranPageLayout.getImageView();

    if (mCoordinatesData != null) {
      mImageView.setCoordinateData(mCoordinatesData);
    }
    updateView();

    justCreated = true;
    return mQuranPageLayout;
  }