Skip to content

Commit

Permalink
属性获取完后增加回收,改善demo
Browse files Browse the repository at this point in the history
  • Loading branch information
totond committed Sep 18, 2017
1 parent 5e23095 commit bec0f38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public PictureProgressBar(Context context, AttributeSet attrs) throws Exception
isGradient = typedArray.getBoolean(R.styleable.PictureProgressBar_isGradient, false);
backgroundDrawableId = typedArray.getResourceId(R.styleable.PictureProgressBar_backgroundDrawable,0);
barDrawableId = typedArray.getResourceId(R.styleable.PictureProgressBar_barDrawable,0);
typedArray.recycle();
init();
}

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
android:layout_height="60dp"
app:max="1000"
app:isSetBar="true"
app:progressHeight="45dp"
app:progressHeight="18dp"
app:animMode="ANIM_FRAME"
app:rotateRate="30"
app:drawableHeightOffset="0dp"
app:progressHeightOffset="0dp"
app:progressHeightOffset="15dp"
app:scaleMax="1.8"
app:scaleMin="0.5"
app:scaleRate="0.1"
Expand Down

0 comments on commit bec0f38

Please sign in to comment.