修正气泡位置计算错误
This commit is contained in:
1 parent
03837d4ea4
commit
f653151acb
1 file changed
+1
-1
@@ -423,7 +423,7 @@ public class GalleryActivity extends AbsActivity
|
||||
mPageSeeker.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL)
|
||||
offsetX = width - thumbOffset - totalOffsetX;
|
||||
else
|
||||
offsetX = totalOffsetX / max + thumbOffset;
|
||||
offsetX = totalOffsetX + thumbOffset;
|
||||
|
||||
mSeekerBubble.setX(offsetX);
|
||||
mSeekerBubble.setText(String.valueOf(progress + 1));
|
||||
|
||||
Reference in new issue
Block a user