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

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

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

Bundle.putSize介绍

暂无

代码示例

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

/**
 * Inserts a Size 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 Size object, or null
 */
@TargetApi(21)
public Bundler putSize(String key, Size value) {
 bundle.putSize(key, value);
 return this;
}

代码示例来源:origin: JumeiRdGroup/Parceler

} else if (Build.VERSION.SDK_INT > 21
    && data instanceof Size) {
  bundle.putSize(key, (Size) data);
} else if (Build.VERSION.SDK_INT > 21
    && data instanceof SizeF) {

代码示例来源:origin: nekocode/Meepo

bundle.putSize(key, (Size) value);
  return;
} else if (value instanceof SizeF) {

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

/**
 * Inserts a Size 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 Size object, or null
 */
@TargetApi(21)
public Bundler putSize(String key, Size value) {
 bundle.putSize(key, value);
 return this;
}

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

/**
 * Inserts a Size 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 Size object, or null
 */
@TargetApi(21)
public Bundler putSize(String key, Size value) {
 bundle.putSize(key, value);
 return this;
}

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

/**
 * Inserts a Size 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 Size object, or null
 */
@TargetApi(21)
public Bundler putSize(String key, Size value) {
 bundle.putSize(key, value);
 return this;
}

代码示例来源:origin: kayoSun/Tack

public static void putToBundle(@NonNull Bundle bundle, String key, Size value) {
  bundle.putSize(key, value);
}
public static void putToBundle(@NonNull Bundle bundle, String key, SizeF value) {

相关文章

Bundle类方法