Skip to content

Commit

Permalink
latest
Browse files Browse the repository at this point in the history
  • Loading branch information
CeuiLiSA committed Apr 14, 2018
1 parent c9d2177 commit b3c0e69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public DragImageView(Context context, AttributeSet attrs) {
public void setImageResource(Bitmap bitmap)
{
imageResource = bitmap;

mIvList = new ArrayList<>();
for (int i = 0; i < circleViewsCount; i++) {
AnimateImageViewItem circleImageView = new AnimateImageViewItem(mContext);
Expand All @@ -70,15 +69,13 @@ public void setImageResource(Bitmap bitmap)
}
mIvList.add(circleImageView);
}

mViewTrackController.init(mIvList);
}

@Override
protected void onFinishInflate() {
super.onFinishInflate();
params = new LayoutParams(
ScreenUtil.dip2px(mContext, circleImgRadius), ScreenUtil.dip2px(mContext, circleImgRadius));
params = new LayoutParams(ScreenUtil.dip2px(mContext, circleImgRadius), ScreenUtil.dip2px(mContext, circleImgRadius));
params.topMargin = ScreenUtil.dip2px(mContext, topMargin);
params.leftMargin = ScreenUtil.getScreenWidth(mContext) / 2 - ScreenUtil.dip2px(mContext, circleImgRadius) / 2;
}
Expand Down

0 comments on commit b3c0e69

Please sign in to comment.