為什么不在new Badge的時(shí)候把mChatTextView作為第二參數(shù),這樣就不用addview 直接在mChatTextView 上面顯示
2015-01-11
大愛,這是我學(xué)習(xí)安卓開發(fā)跟著老師一起寫的第一個(gè)程序,雖然其中雖然跟老師寫的一樣還是有問題的地方費(fèi)了很大勁才找到解決方法(ps:新手嘛,你懂的LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams)mTabline.getLayoutParams(); )
2015-01-06
public void onPageScrolled(int position, float positionOffset, int positionOffsetPx) {LinearLayout.LayoutParams lp= (android.widget.LinearLayout.LayoutParams) tableLine.getLayoutParams();lp.leftMargin=(int) (positionOffset*mScreen+position*mScreen);tableLine.setLayoutParams(lp);}這樣也可以實(shí)現(xiàn)我測(cè)試正確不知道這樣正確不
2015-01-06