Skip to content

Commit c13ed6f

Browse files
committed
shrink anim complete
1 parent 52f01af commit c13ed6f

24 files changed

Lines changed: 946 additions & 192 deletions

File tree

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Loadingbutton/src/main/java/com/flod/loadingbutton/DrawableTextView.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,11 @@ public void setDrawable(@POSITION int position, @Nullable Drawable drawable, @Px
257257
if (drawable != null) {
258258
Rect bounds = new Rect();
259259
if (width == -1 && height == -1) {
260-
bounds.right = bounds.left + drawable.getIntrinsicWidth();
261-
bounds.bottom = bounds.top + drawable.getIntrinsicHeight();
260+
bounds.right = drawable.getIntrinsicWidth();
261+
bounds.bottom = drawable.getIntrinsicHeight();
262262
} else {
263-
bounds.right = bounds.left + width;
264-
bounds.bottom = bounds.top + height;
263+
bounds.right = width;
264+
bounds.bottom = height;
265265
}
266266
mDrawables[position].setBounds(bounds.left, bounds.top, bounds.right, bounds.bottom);
267267
mDrawablesBounds[position] = bounds;

0 commit comments

Comments
 (0)