@Override
 protected void onAttachedToWindow() {
   super.onAttachedToWindow();
   ActivityChooserModel dataModel = mAdapter.getDataModel();
   if (dataModel != null) {
     try {
       dataModel.registerObserver(mModelDataSetOberver);
     } catch (IllegalStateException e) {
       // Related to #557.
     }
   }
   mIsAttachedToWindow = true;
 }
 public void onAttachedToWindow()
 {
   super.onAttachedToWindow();
   e();
   if (u)
   {
     if (t == null) {
       t = new e();
     }
     getViewTreeObserver().addOnPreDrawListener(t);
   }
   if ((v == null) && (ai.x(this))) {
     ai.w(this);
   }
   o = true;
 }
Exemplo n.º 3
0
  @Override
  protected void onAttachedToWindow() {
    super.onAttachedToWindow();

    final ViewParent parent = getParent();
    if (!(parent instanceof ViewPager)) {
      throw new IllegalStateException("PagerTitleStrip must be a direct child of a ViewPager.");
    }

    final ViewPager pager = (ViewPager) parent;
    final PagerAdapter adapter = pager.getAdapter();

    pager.setInternalPageChangeListener(mPageListener);
    pager.setOnAdapterChangeListener(mPageListener);
    mPager = pager;
    updateAdapter(null, adapter);
  }
 @Override
 public void onAttachedToWindow() {
   super.onAttachedToWindow();
   removeCallbacks(mCancel);
   removeCallbacks(mReturnToStartPosition);
 }
 @Override
 protected void onAttachedToWindow() {
   super.onAttachedToWindow();
   computeScroll();
 }
Exemplo n.º 6
0
 @Override
 protected void onAttachedToWindow() {
   super.onAttachedToWindow();
   mCellInfo.screen = ((ViewGroup) getParent()).indexOfChild(this);
 }
 @Override
 protected void onAttachedToWindow() {
   super.onAttachedToWindow();
   mFirstLayout = true;
 }
 @Override
 protected void onAttachedToWindow() {
   super.onAttachedToWindow();
   getViewTreeObserver().addOnScrollChangedListener(mScrollChangedListener);
 }
 @Override
 protected void onAttachedToWindow() {
   super.onAttachedToWindow();
 }