android.os.Bundle.putFloatArray()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(6.8k)|赞(0)|评价(0)|浏览(118)

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

Bundle.putFloatArray介绍

暂无

代码示例

代码示例来源:origin: androidannotations/androidannotations

public I arg(String key, float[] value) {
  args.putFloatArray(key, value);
  return (I) this;
}

代码示例来源:origin: ogaclejapan/SmartTabLayout

/**
 * Inserts a float array value into the mapping of this Bundle, replacing
 * any existing value for the given key.  Either key or value may be null.
 *
 * @param key   a String, or null
 * @param value a float array object, or null
 */
public Bundler putFloatArray(String key, float[] value) {
 bundle.putFloatArray(key, value);
 return this;
}

代码示例来源:origin: ogaclejapan/SmartTabLayout

/**
 * Inserts a float array value into the mapping of this Bundle, replacing
 * any existing value for the given key.  Either key or value may be null.
 *
 * @param key   a String, or null
 * @param value a float array object, or null
 */
public Bundler putFloatArray(String key, float[] value) {
 bundle.putFloatArray(key, value);
 return this;
}

代码示例来源:origin: bluelinelabs/Conductor

public BundleBuilder putFloatArray(String key, float[] value) {
  bundle.putFloatArray(key, value);
  return this;
}

代码示例来源:origin: f2prateek/dart

/**
 * Inserts a float array value into the mapping of the underlying Bundle, replacing any existing
 * value for the given key. Either key or value may be null.
 *
 * @param key a String, or null
 * @param value a float array object, or null
 * @return this bundler instance to chain method calls
 */
public Bundler put(String key, float[] value) {
 delegate.putFloatArray(key, value);
 return this;
}

代码示例来源:origin: wangdan/AisenWeiBo

@Override
protected Parcelable onSaveInstanceState() {
  Bundle state = new Bundle();
  state.putFloatArray("color", colorHSV);
  state.putParcelable("super", super.onSaveInstanceState());
  return state;
}

代码示例来源:origin: MikeOrtiz/TouchImageView

@Override
public Parcelable onSaveInstanceState() {
  Bundle bundle = new Bundle();
  bundle.putParcelable("instanceState", super.onSaveInstanceState());
  bundle.putInt("orientation", orientation);
  bundle.putFloat("saveScale", normalizedScale);
  bundle.putFloat("matchViewHeight", matchViewHeight);
  bundle.putFloat("matchViewWidth", matchViewWidth);
  bundle.putInt("viewWidth", viewWidth);
  bundle.putInt("viewHeight", viewHeight);
  matrix.getValues(m);
  bundle.putFloatArray("matrix", m);
  bundle.putBoolean("imageRendered", imageRenderedAtLeastOnce);
  bundle.putSerializable("viewSizeChangeFixedPixel", viewSizeChangeFixedPixel);
  bundle.putSerializable("orientationChangeFixedPixel", orientationChangeFixedPixel);
  return bundle;
}

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

private static void putFloatArray(String key, Bundle bundle) {
  int length = random.nextInt(50);
  float[] array = new float[length];
  for (int i = 0; i < length; i++) {
    array[i] = random.nextFloat();
  }
  bundle.putFloatArray(key, array);
}

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

array[i] = (float)jsonArray.getDouble(i);
  bundle.putFloatArray(key, array);
} else if (valueType.equals(TYPE_DOUBLE)) {
  bundle.putDouble(key, json.getDouble(JSON_VALUE));

代码示例来源:origin: konmik/nucleus

when(bundle.getShortArray(anyString())).thenAnswer(get);
doAnswer(put).when(bundle).putFloatArray(anyString(), any(float[].class));
when(bundle.getFloatArray(anyString())).thenAnswer(get);

代码示例来源:origin: meituan/WMRouter

/**
 * 附加到Intent的Extra
 */
public DefaultUriRequest putExtra(String name, float[] value) {
  extra().putFloatArray(name, value);
  return this;
}

代码示例来源:origin: multidots/android-app-common-tasks

@Override
public Parcelable onSaveInstanceState() {
  Bundle bundle = new Bundle();
  bundle.putParcelable("instanceState", super.onSaveInstanceState());
  bundle.putFloat("saveScale", normalizedScale);
  bundle.putFloat("matchViewHeight", matchViewHeight);
  bundle.putFloat("matchViewWidth", matchViewWidth);
  bundle.putInt("viewWidth", viewWidth);
  bundle.putInt("viewHeight", viewHeight);
  matrix.getValues(m);
  bundle.putFloatArray("matrix", m);
  bundle.putBoolean("imageRendered", imageRenderedAtLeastOnce);
  return bundle;
}

代码示例来源:origin: multidots/android-app-common-tasks

@Override
public Parcelable onSaveInstanceState() {
  Bundle bundle = new Bundle();
  bundle.putParcelable("instanceState", super.onSaveInstanceState());
  bundle.putFloat("saveScale", normalizedScale);
  bundle.putFloat("matchViewHeight", matchViewHeight);
  bundle.putFloat("matchViewWidth", matchViewWidth);
  bundle.putInt("viewWidth", viewWidth);
  bundle.putInt("viewHeight", viewHeight);
  matrix.getValues(m);
  bundle.putFloatArray("matrix", m);
  bundle.putBoolean("imageRendered", imageRenderedAtLeastOnce);
  return bundle;
}

代码示例来源:origin: 80945540/LCRapidDevelop

/**
 * Inserts a float array value into the mapping of this Bundle, replacing
 * any existing value for the given key.  Either key or value may be null.
 *
 * @param key   a String, or null
 * @param value a float array object, or null
 */
public Bundler putFloatArray(String key, float[] value) {
 bundle.putFloatArray(key, value);
 return this;
}

代码示例来源:origin: 80945540/FreeBook

/**
 * Inserts a float array value into the mapping of this Bundle, replacing
 * any existing value for the given key.  Either key or value may be null.
 *
 * @param key   a String, or null
 * @param value a float array object, or null
 */
public Bundler putFloatArray(String key, float[] value) {
 bundle.putFloatArray(key, value);
 return this;
}

代码示例来源:origin: com.github.stephanenicolas.dart.v2/henson

/**
 * Inserts a float array value into the mapping of the underlying Bundle, replacing
 * any existing value for the given key.  Either key or value may be null.
 *
 * @param key a String, or null
 * @param value a float array object, or null
 * @return this bundler instance to chain method calls
 */
public Bundler put(String key, float[] value) {
 delegate.putFloatArray(key, value);
 return this;
}

代码示例来源:origin: SwiftyWang/FingerColoring-Android

@Override
protected Parcelable onSaveInstanceState() {
  Bundle state = new Bundle();
  state.putFloatArray("color", colorHSV);
  state.putParcelable("super", super.onSaveInstanceState());
  return state;
}

代码示例来源:origin: marzika/Snapprefs

@Override
protected Parcelable onSaveInstanceState() {
  Bundle state = new Bundle();
  state.putFloatArray("color", colorHSV);
  state.putParcelable("super", super.onSaveInstanceState());
  return state;
}

代码示例来源:origin: zxfnicholas/CameraSDK

@Override
protected Parcelable onSaveInstanceState() {
  Parcelable superState = super.onSaveInstanceState();
  Bundle state = new Bundle();
  state.putParcelable(STATE_PARENT, superState);
  state.putFloatArray(STATE_COLOR, mHSVColor);
  
  float[] hsvColor = new float[3];
  Color.colorToHSV(mColor, hsvColor);
  state.putFloat(STATE_SATURATION, hsvColor[1]);
  return state;
}

代码示例来源:origin: mkulesh/microMathematics

@Override
protected Parcelable onSaveInstanceState() {
  Parcelable superState = super.onSaveInstanceState();
  Bundle state = new Bundle();
  state.putParcelable(STATE_PARENT, superState);
  state.putFloatArray(STATE_COLOR, mHSVColor);
  state.putInt(STATE_OPACITY, getOpacity());
  return state;
}

相关文章

Bundle类方法