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

x33g5p2x  于2022-01-29 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(124)

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

ScrollView.onSizeChanged介绍

暂无

代码示例

代码示例来源:origin: chaychan/TouTiao

  1. @Override
  2. protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  3. super.onSizeChanged(w, h, oldw, oldh);
  4. mHeaderWidth = mHeaderView.getMeasuredWidth();
  5. mHeaderHeight = mHeaderView.getMeasuredHeight();
  6. }

代码示例来源:origin: leftcoding/GankLy

  1. @Override
  2. protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  3. super.onSizeChanged(w, h, oldw, oldh);
  4. // KLog.d(TAG, "w: " + w + ", h: " + h + ", oldw: " + oldw + ", oldh: " + oldh);
  5. viewWidth = w;
  6. setBackground(null);
  7. }

代码示例来源:origin: mnnyang/ClassSchedule

  1. @Override
  2. protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  3. super.onSizeChanged(w, h, oldw, oldh);
  4. Log.d(TAG, "w: " + w + ", h: " + h + ", oldw: " + oldw + ", oldh: " + oldh);
  5. viewWidth = w;
  6. setBackgroundDrawable(null);
  7. }

代码示例来源:origin: egek92/DiscrollView2

  1. @Override protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  2. super.onSizeChanged(w, h, oldw, oldh);
  3. setupFirstView();
  4. }

代码示例来源:origin: JackWHLiu/jackknife

  1. @Override
  2. protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  3. super.onSizeChanged(w, h, oldw, oldh);
  4. if (mFirstMatchHeight) {
  5. View first = mContentRecycler.getChildAt(0);
  6. if (first != null) {
  7. first.getLayoutParams().height = getHeight();
  8. }
  9. }
  10. }

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

  1. /**
  2. */
  3. @Override
  4. protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  5. super.onSizeChanged(w, h, oldw, oldh);
  6. this.ensureDecorator();
  7. mDecorator.onSizeChanged(w, h, oldw, oldh);
  8. }

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

  1. /**
  2. */
  3. @Override
  4. protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  5. super.onSizeChanged(w, h, oldw, oldh);
  6. this.ensureDecorator();
  7. mDecorator.onSizeChanged(w, h, oldw, oldh);
  8. }

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

  1. /**
  2. */
  3. @Override
  4. protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  5. super.onSizeChanged(w, h, oldw, oldh);
  6. this.ensureDecorator();
  7. mDecorator.onSizeChanged(w, h, oldw, oldh);
  8. }

代码示例来源:origin: Jerey-Jobs/KeepGank

  1. @Override
  2. protected void onSizeChanged(int w, int h, int oldw, int oldh) {
  3. super.onSizeChanged(w, h, oldw, oldh);
  4. mLinearLayout.getChildAt(0).getLayoutParams().height = getHeight();
  5. mLinearLayout.getChildAt(0).getLayoutParams().width = getWidth();
  6. }

相关文章

ScrollView类方法