最贊回答 / 凄涼的唯美
可以用LayoutInflater mInflater = layoutInflater.from(this.context); View veiw = mInflater.inflater(R.layout.item),把一個(gè)xml文件轉(zhuǎn)換成一個(gè)view.
2016-03-12
最新回答 / mmotiy
<...code...>for(int i=0;i<cCount;i++){ View view=getChildAt(i); ? ?? LinearLayout.LayoutParams lp=(LayoutParams) view.getLayoutParams(); lp.weight=0; lp.width=0; lp.width=getScreenWidth()/mTabVisibleCount; view.setLayoutPar...
2016-03-11
最新回答 / 哈楠
我是在if (position >= (visibleTabCount-1) && offset>0 && itemcount>visibleTabCount&& ? ? position<itemcount-2 ? )加了position<itemcount-2 ? ,也可完美解決
2016-03-11
最新回答 / zgzzgz
positionOffsetPixels這個(gè)參數(shù)是日志上看,再起點(diǎn)和終點(diǎn)的時(shí)候是0,會(huì)出現(xiàn)驟變,個(gè)人覺(jué)得它是不能用的。
2016-03-09