80,351
社区成员
发帖
与我相关
我的任务
分享
Window window=getWindow();
WindowManager m = getWindowManager();
Display d = m.getDefaultDisplay(); WindowManager.LayoutParams wl = window.getAttributes();
//wl.height = (int) (d.getHeight() * 0.4);
wl.width = (int) (d.getWidth() * 0.55);
wl.x=-35;
wl.y=0;
wl.alpha=0.5f;
window.setAttributes(wl);