android.widget.ListView.onSizeChanged()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(138)

本文整理了Java中android.widget.ListView.onSizeChanged()方法的一些代码示例,展示了ListView.onSizeChanged()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListView.onSizeChanged()方法的具体详情如下:
包路径:android.widget.ListView
类名称:ListView
方法名:onSizeChanged

ListView.onSizeChanged介绍

暂无

代码示例

代码示例来源:origin: UweTrottmann/SeriesGuide

@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  super.onSizeChanged(w, h, oldw, oldh);
  updateScrollStarts();
}

代码示例来源:origin: yydcdut/SlideAndDragListView

@Override
  protected void onSizeChanged(int w, int h, int oldw, int oldh) {
    super.onSizeChanged(w, h, oldw, oldh);
    mDragManager.onSizeChanged();
  }
}

代码示例来源:origin: devinhu/androidone

@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  super.onSizeChanged(w, h, oldw, oldh);
  updateScrollStarts();
}

代码示例来源:origin: com.albedinsky.android/dialogs-collection

/**
 */
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  super.onSizeChanged(w, h, oldw, oldh);
  mEdgeShadowHelper.onViewSizeChanged(w, h);
}

代码示例来源:origin: com.albedinsky.android.support/support-dialogs

/**
 */
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  super.onSizeChanged(w, h, oldw, oldh);
  mEdgeShadowHelper.onViewSizeChanged(w, h);
}

代码示例来源:origin: com.albedinsky.android/dialogs

/**
 */
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  super.onSizeChanged(w, h, oldw, oldh);
  mEdgeShadowHelper.onViewSizeChanged(w, h);
}

代码示例来源:origin: pmarks-net/chromadoze

@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  super.onSizeChanged(w, h, oldw, oldh);
  updateScrollStarts();
}

代码示例来源:origin: com.albedinsky.android.support/support-dialogs-collection-base

/**
 */
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  super.onSizeChanged(w, h, oldw, oldh);
  mEdgeShadowHelper.onViewSizeChanged(w, h);
}

代码示例来源:origin: namndbka/QDict

@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  super.onSizeChanged(w, h, oldw, oldh);
  updateScrollStarts();
}

代码示例来源:origin: yomguy/servestream

@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  super.onSizeChanged(w, h, oldw, oldh);
  updateScrollStarts();
}

代码示例来源:origin: vanilla-music/vanilla

@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  super.onSizeChanged(w, h, oldw, oldh);
  updateScrollStarts();
}

代码示例来源:origin: com.albedinsky.android/dialogs-collection-base

/**
 */
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  super.onSizeChanged(w, h, oldw, oldh);
  mEdgeShadowHelper.onViewSizeChanged(w, h);
}

代码示例来源:origin: com.albedinsky.android.support/support-dialogs-collection

/**
 */
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  super.onSizeChanged(w, h, oldw, oldh);
  mEdgeShadowHelper.onViewSizeChanged(w, h);
}

代码示例来源:origin: yukuku/androidbible

@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  super.onSizeChanged(w, h, oldw, oldh);
  updateScrollStarts();
}

代码示例来源:origin: adolfAn/FBReader_AS

@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  super.onSizeChanged(w, h, oldw, oldh);
  updateScrollStarts();
}

代码示例来源:origin: matrix-org/matrix-android-sdk

@Override
protected void onSizeChanged(int xNew, int yNew, int xOld, int yOld) {
  super.onSizeChanged(xNew, yNew, xOld, yOld);
  if (!mLockSelectionOnResize) {
    // check if the keyboard is displayed
    // we don't want that the list scrolls to the bottom when the keyboard is hidden.
    if (yNew < yOld) {
      postDelayed(new Runnable() {
        @Override
        public void run() {
          setSelection(getCount() - 1);
        }
      }, 100);
    }
  }
}

代码示例来源:origin: AppLozic/Applozic-Android-SDK

@Override
protected void onSizeChanged(int xNew, int yNew, int xOld, int yOld) {
  super.onSizeChanged(xNew, yNew, xOld, yOld);
  postDelayed(new Runnable() {
    @Override
    public void run() {
      if (scrollToBottomOnSizeChange) {
        smoothScrollToPosition(getCount() - 1);
        setSelection(getCount());
        //Note: Setting text to messageEditText, it is required to fix the problem with list scroll not
        //working properly on window keypad open
        int selectionStart = messageEditText.getSelectionStart();
        messageEditText.setText(messageEditText.getText().toString());
        messageEditText.setSelection(selectionStart);
      }
    }
  }, 200L);
}

代码示例来源:origin: com.albedinsky.android/ui-widget-collection

/**
 */
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  super.onSizeChanged(w, h, oldw, oldh);
  this.ensureDecorator();
  mDecorator.onSizeChanged(w, h, oldw, oldh);
}

代码示例来源:origin: com.albedinsky.android/ui

/**
 */
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  super.onSizeChanged(w, h, oldw, oldh);
  this.ensureDecorator();
  mDecorator.onSizeChanged(w, h, oldw, oldh);
}

代码示例来源:origin: 1993hzw/Androids

@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  super.onSizeChanged(w, h, oldw, oldh);
  mAutoScrollUpY = dp2px(getContext(), 80); // 取得向上滚动的边际,大概为该控件的1/3
  mAutoScrollDownY = h - mAutoScrollUpY; // 取得向下滚动的边际,大概为该控件的2/3
}

相关文章

ListView类方法