author | Zhiwei Yan <zhiwei.yan@amlogic.com> | 2016-12-05 05:54:11 (GMT) |
---|---|---|
committer | Zhiwei Yan <zhiwei.yan@amlogic.com> | 2016-12-05 05:54:11 (GMT) |
commit | e5265c27633f491fa92778a0911558e7c733643e (patch) | |
tree | e2ca9ea5006889f0b872762e758521643245bee1 | |
parent | d59ecada5558944880dd97f0af88e710506bf3ef (diff) | |
download | SubTitle-e5265c27633f491fa92778a0911558e7c733643e.zip SubTitle-e5265c27633f491fa92778a0911558e7c733643e.tar.gz SubTitle-e5265c27633f491fa92778a0911558e7c733643e.tar.bz2 |
pd#136271:revise proportionality coefficient of subtitle position
Change-Id: I96112b2c8c7452076a5ed1bf1c8a907ac2aec99c
-rw-r--r-- | src/com/droidlogic/SubTitleService/SubTitleService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/droidlogic/SubTitleService/SubTitleService.java b/src/com/droidlogic/SubTitleService/SubTitleService.java index 6fb8986..f48c25d 100644 --- a/src/com/droidlogic/SubTitleService/SubTitleService.java +++ b/src/com/droidlogic/SubTitleService/SubTitleService.java @@ -577,7 +577,7 @@ public class SubTitleService extends ISubTitleService.Stub { mRatio = ratioViewH; } RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) subTitleView.getLayoutParams(); - layoutParams.bottomMargin=(int)(mBottomMargin * ratioFBH); + layoutParams.bottomMargin=(int)(mBottomMargin * ratioFBH * ratioViewH); subTitleView.setLayoutParams(layoutParams); mWindowLayoutParams.x = (int)(x * ratioFBW); mWindowLayoutParams.y = (int)(y * ratioFBH); |