代码里设置子view宽度不起作用
LinearLayout.LayoutParams lp = (LayoutParams) view.getLayoutParams(); lp.weight = 0; lp.weight = getScreenWidth() / mTabVisibleCount; view.setLayoutParams(lp); 这句话为什么我设置了没起作用 上面显示还是九个
LinearLayout.LayoutParams lp = (LayoutParams) view.getLayoutParams(); lp.weight = 0; lp.weight = getScreenWidth() / mTabVisibleCount; view.setLayoutParams(lp); 这句话为什么我设置了没起作用 上面显示还是九个
2016-03-11
举报