标签:
//获取手机宽度
WindowManager wm = (WindowManager) getActivity().getSystemService(
Context.WINDOW_SERVICE);Display display = wm.getDefaultDisplay();
screenWidth = display.getWidth();
给自己的控件设置宽度
LayoutParams params = yundong_left.getLayoutParams();
params.width = screenWidth;
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:
原文地址:http://blog.csdn.net/farley119/article/details/48024295