android.widget.SeekBar.onMeasure()方法的使用及代码示例

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

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

SeekBar.onMeasure介绍

暂无

代码示例

代码示例来源:origin: smuyyh/BookReader

@Override
protected synchronized void onMeasure(int widthMeasureSpec,
                   int heightMeasureSpec) {
  super.onMeasure(heightMeasureSpec, widthMeasureSpec);
  setMeasuredDimension(getMeasuredHeight(), getMeasuredWidth());
}

代码示例来源:origin: w1123440793/VideoListDemo

@Override
protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
  super.onMeasure(heightMeasureSpec, widthMeasureSpec);
  setMeasuredDimension(getMeasuredHeight(),getMeasuredWidth());
}

代码示例来源:origin: ksvc/KSYMediaPlayer_Android

@Override
protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
  super.onMeasure(heightMeasureSpec, widthMeasureSpec);
  setMeasuredDimension(getMeasuredHeight(), getMeasuredWidth());
}

代码示例来源:origin: tomahawk-player/tomahawk-android

@Override
protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
  super.onMeasure(heightMeasureSpec, widthMeasureSpec);
  setMeasuredDimension(getMeasuredHeight(), getMeasuredWidth());
}

代码示例来源:origin: WiInputMethod/VE

@Override
protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
  super.onMeasure(heightMeasureSpec, widthMeasureSpec);
  setMeasuredDimension(getMeasuredHeight(), getMeasuredWidth());
}

代码示例来源:origin: 18Gray/ProCamera

@Override
protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
{
  super.onMeasure(heightMeasureSpec, widthMeasureSpec);
  setMeasuredDimension(getMeasuredHeight(), getMeasuredWidth());
}

代码示例来源:origin: ksvc/KSYMediaPlayer_Android

@Override
protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
  super.onMeasure(heightMeasureSpec, widthMeasureSpec);
  setMeasuredDimension(getMeasuredHeight(), getMeasuredWidth());
}

代码示例来源:origin: TongmingWu/Manga

@Override
protected synchronized void onMeasure(int widthMeasureSpec,
                   int heightMeasureSpec) {
  super.onMeasure(heightMeasureSpec, widthMeasureSpec);
  setMeasuredDimension(getMeasuredHeight(), getMeasuredWidth());
}

代码示例来源:origin: eliotstocker/Light-Controller

@Override
protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
  super.onMeasure(heightMeasureSpec, widthMeasureSpec);
  setMeasuredDimension(getMeasuredHeight(), getMeasuredWidth());
}

代码示例来源:origin: apps4av/avare

@Override
protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
  super.onMeasure(heightMeasureSpec, widthMeasureSpec);
  setMeasuredDimension(getMeasuredHeight(), getMeasuredWidth());
}

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

/**
 */
@Override
protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
  super.onMeasure(widthMeasureSpec, heightMeasureSpec);
  if (mDecorator.hasPrivateFlag(PFLAG_DISCRETE) && mDiscreteIndicatorHeight > 0) {
    // Measure extra space for discrete indicator.
    setMeasuredDimension(getMeasuredWidth(), getMeasuredHeight() + mDiscreteIndicatorHeight);
  }
}

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

/**
 */
@Override
protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
  super.onMeasure(widthMeasureSpec, heightMeasureSpec);
  if (mDecorator.hasPrivateFlag(PFLAG_DISCRETE) && mDiscreteIndicatorHeight > 0) {
    // Measure extra space for discrete indicator.
    setMeasuredDimension(getMeasuredWidth(), getMeasuredHeight() + mDiscreteIndicatorHeight);
  }
}

代码示例来源:origin: gqjjqg/android-extend

@Override
protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
  super.onMeasure(heightMeasureSpec, widthMeasureSpec);
  setMeasuredDimension(getMeasuredHeight(), getMeasuredWidth());
  /**
   * when the layout is changed.
   * we also should changed the thumb's position
   */
  super.onSizeChanged(getMeasuredHeight(), getMeasuredWidth(), 0, 0);
}

相关文章

SeekBar类方法