最新回答 / sssnnnn
導(dǎo)錯(cuò)包了應(yīng)該用android.support.v4.app.Fragment而不是android.app.Fragment
2016-03-19
最贊回答 / 凄涼的唯美
可以用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