本文整理了Java中android.os.Bundle.putSize()
方法的一些代码示例,展示了Bundle.putSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bundle.putSize()
方法的具体详情如下:
包路径:android.os.Bundle
类名称: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) {
内容来源于网络,如有侵权,请联系作者删除!