界面优化 增加历史礼包(有未解决BUG)和关于页面
This commit is contained in:
@ -110,9 +110,9 @@ public class DownloadManagerActivity extends BaseFragmentActivity implements
|
||||
DisplayMetrics outMetrics = new DisplayMetrics();
|
||||
getWindowManager().getDefaultDisplay().getMetrics(outMetrics);
|
||||
width = outMetrics.widthPixels / 3;
|
||||
lparams = new LinearLayout.LayoutParams(width / 2,
|
||||
lparams = new LinearLayout.LayoutParams((int)(width * 0.7),
|
||||
DisplayUtils.dip2px(getApplicationContext(), 2));
|
||||
lparams.leftMargin = (int) (width * (currentItem + 0.25f));
|
||||
lparams.leftMargin = (int) (width * (currentItem + 0.17f));
|
||||
downloadmanager_slide_line.setLayoutParams(lparams);
|
||||
|
||||
List<Fragment> list = new ArrayList<>();
|
||||
@ -146,7 +146,7 @@ public class DownloadManagerActivity extends BaseFragmentActivity implements
|
||||
@Override
|
||||
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
|
||||
if (positionOffset != 0) {
|
||||
lparams.leftMargin = (int) (width * (position + positionOffset + 0.25f));
|
||||
lparams.leftMargin = (int) (width * (position + positionOffset + 0.17f));
|
||||
downloadmanager_slide_line.setLayoutParams(lparams);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user