Skip to content

Commit

Permalink
android studio渲染增加跑马灯宽度
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonDevLifeLog committed Jan 8, 2020
1 parent 64694ae commit cfb9302
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ private void initMainCenterViews(Context context) {
tvCenter.setGravity(Gravity.CENTER);
tvCenter.setSingleLine(true);
// 设置跑马灯效果
int maxWidth = 100;
int maxWidth = 400;
if (!isInEditMode()) {
maxWidth = (int) (ScreenUtils.getScreenPixelSize(context)[0] * 3 / 5.0);
}
Expand Down

0 comments on commit cfb9302

Please sign in to comment.