public void setBarDrawableId(int id) throws Exception {
Drawable drawable = getResources().getDrawable(id);
if (drawable instanceof BitmapDrawable) {
barDrawable = (BitmapDrawable) drawable;
updateDrawableBounds(progressHeight);
}else {
throw new Exception("输入的id不是BitmapDrawable的id");
}
}
PictureProgressBar.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:PictureProgressBar
作者:
评论列表
文章目录