/**
* Updates a scale level of the given <var>drawable</var> according to the specified scale
* value.
*
* @param drawable The drawable of which scale level to update.
* @param scale The scale value from the range {@code [0.0, 1.0]}.
*/
private void updateDrawableScale(Drawable drawable, float scale) {
if (drawable instanceof ScaleDrawable) drawable.setLevel(Math.round(scale * MAX_LEVEL));
}
SeekBarWidget.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:android_ui
作者:
评论列表
文章目录