SeekBarWidget.java 文件源码

java
阅读 27 收藏 0 点赞 0 评论 0

项目:android_ui 作者:
/**
 * 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));
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号