本文整理了Java中android.widget.ScrollView.onSizeChanged()
方法的一些代码示例,展示了ScrollView.onSizeChanged()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ScrollView.onSizeChanged()
方法的具体详情如下:
包路径:android.widget.ScrollView
类名称:ScrollView
方法名:onSizeChanged
暂无
代码示例来源:origin: chaychan/TouTiao
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
mHeaderWidth = mHeaderView.getMeasuredWidth();
mHeaderHeight = mHeaderView.getMeasuredHeight();
}
代码示例来源:origin: leftcoding/GankLy
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
// KLog.d(TAG, "w: " + w + ", h: " + h + ", oldw: " + oldw + ", oldh: " + oldh);
viewWidth = w;
setBackground(null);
}
代码示例来源:origin: mnnyang/ClassSchedule
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
Log.d(TAG, "w: " + w + ", h: " + h + ", oldw: " + oldw + ", oldh: " + oldh);
viewWidth = w;
setBackgroundDrawable(null);
}
代码示例来源:origin: egek92/DiscrollView2
@Override protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
setupFirstView();
}
代码示例来源:origin: JackWHLiu/jackknife
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
if (mFirstMatchHeight) {
View first = mContentRecycler.getChildAt(0);
if (first != null) {
first.getLayoutParams().height = getHeight();
}
}
}
代码示例来源:origin: com.albedinsky.android/ui-widget-layout
/**
*/
@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-widget-layout-scroll
/**
*/
@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: Jerey-Jobs/KeepGank
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
mLinearLayout.getChildAt(0).getLayoutParams().height = getHeight();
mLinearLayout.getChildAt(0).getLayoutParams().width = getWidth();
}
内容来源于网络,如有侵权,请联系作者删除!