直接lp.leftMargin= (int) (mCurrentPageIndex*mScreen1_3+(positionOffset+position-mCurrentPageIndex)*mScreen1_3);
就不用判斷了吧
就不用判斷了吧
2015-01-22
為什么不在new Badge的時候把mChatTextView作為第二參數,這樣就不用addview 直接在mChatTextView 上面顯示
2015-01-11
大愛,這是我學習安卓開發跟著老師一起寫的第一個程序,雖然其中雖然跟老師寫的一樣還是有問題的地方費了很大勁才找到解決方法(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);}這樣也可以實現我測試正確不知道這樣正確不
2015-01-06
講師回答 / hyman
你好,如果不影響運行就好;1、可以嘗試clean項目。2、重新選擇android的版本,然后右鍵單擊工程,選擇Android Tools->Fix Project Properties。
2015-01-05
講師回答 / hyman
你好,如果不影響運行就好;1、可以嘗試clean項目。2、重新選擇android的版本,然后右鍵單擊工程,選擇Android Tools->Fix Project Properties。
2015-01-05