本文整理汇总了Java中org.adw.library.widgets.discreteseekbar.internal.drawable.AlmostRippleDrawable类的典型用法代码示例。如果您正苦于以下问题:Java AlmostRippleDrawable类的具体用法?Java AlmostRippleDrawable怎么用?Java AlmostRippleDrawable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AlmostRippleDrawable类属于org.adw.library.widgets.discreteseekbar.internal.drawable包,在下文中一共展示了AlmostRippleDrawable类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getRipple
import org.adw.library.widgets.discreteseekbar.internal.drawable.AlmostRippleDrawable; //导入依赖的package包/类
/**
* Our DiscreteSeekBar implementation uses a circular drawable on API < 21
* because we don't set it as Background, but draw it ourselves
*
* @param colorStateList
* @return
*/
public static Drawable getRipple(ColorStateList colorStateList) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
return SeekBarCompatDontCrash.getRipple(colorStateList);
} else {
return new AlmostRippleDrawable(colorStateList);
}
}
开发者ID:dmllr,项目名称:IdealMedia,代码行数:15,代码来源:SeekBarCompat.java
示例2: setRippleColor
import org.adw.library.widgets.discreteseekbar.internal.drawable.AlmostRippleDrawable; //导入依赖的package包/类
/**
* Sets the color of the seekbar ripple
*
* @param drawable
* @param colorStateList The ColorStateList the track ripple will be changed to
*/
public static void setRippleColor(@NonNull Drawable drawable, ColorStateList colorStateList) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
((RippleDrawable) drawable).setColor(colorStateList);
} else {
((AlmostRippleDrawable) drawable).setColor(colorStateList);
}
}
开发者ID:zacharee,项目名称:SliderPreferenceEmbedded,代码行数:14,代码来源:SeekBarCompat.java
示例3: setRippleColor
import org.adw.library.widgets.discreteseekbar.internal.drawable.AlmostRippleDrawable; //导入依赖的package包/类
/**
* Sets the color of the seekbar ripple
* @param drawable
* @param colorStateList The ColorStateList the track ripple will be changed to
*/
public static void setRippleColor(@NonNull Drawable drawable, ColorStateList colorStateList) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
((RippleDrawable) drawable).setColor(colorStateList);
} else {
((AlmostRippleDrawable) drawable).setColor(colorStateList);
}
}
开发者ID:sathishmscict,项目名称:DiscreteSeekBar,代码行数:13,代码来源:SeekBarCompat.java
注:本文中的org.adw.library.widgets.discreteseekbar.internal.drawable.AlmostRippleDrawable类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论