本來是內存溢出java.lang.OutOfMemoryError: Failed to allocate a 33177612 byte allocation with 16777120 free bytes and 22MB until OOM
然后我把圖片放到mipmap-hdpi文件夾就沒事了. 啟動應用的速度也快了
然后我把圖片放到mipmap-hdpi文件夾就沒事了. 啟動應用的速度也快了
2016-04-24
以下是來自nineoldandroid的消息
DEPRECATED
NineOldAndroids is deprecated. No new development will be taking place. Existing versions will (of course) continue to function. New applications should use minSdkVersion="14" or higher which has access to the platform animation APIs.
Thanks for all your support!
DEPRECATED
NineOldAndroids is deprecated. No new development will be taking place. Existing versions will (of course) continue to function. New applications should use minSdkVersion="14" or higher which has access to the platform animation APIs.
Thanks for all your support!
2016-04-16
已采納回答 / kacent
http://developer.android.com/intl/zh-tw/reference/android/app/ActionBar.TabListener.html
2016-04-11
第三個View出現的情況主要是我們滑動到第三個,然后往回切成第二個的時候,第三個View設置的TranslationX 就是-getWidth()-getPageMargin()+0;(也就是offsetPixels=0 原因不懂的話,再仔細看一遍視頻),那么這個View的大小也會變成MIN_SCALE 所以,當我們從第二個再滑動回第一個的時候。 就會出現那種情況,我們做測試,當我們不滑動到第三個,只滑動到第二個再滑動回第一個的時候,就不會出現第三個。
2016-03-30
所以驗證了我們的猜想是正確的。然后因為他的位置被我們強制設置在了屏幕中央(mRight.setTranslationX(MIN_SCALE + (1 - MIN_SCALE) * offset)),大小也被變成原來的0.6倍mRight.setScaleY(MIN_SCALE + (1 - MIN_SCALE) * 0)。 所以我們只需要在setPagerTeansformer中做出判斷。 判斷,只要offset=0那么馬上讓 mScale = 0;mTran = 0;
也就是讓我們的View進行一個(回位的操作).就能很好的避開老師視頻中出現的bug
也就是讓我們的View進行一個(回位的操作).就能很好的避開老師視頻中出現的bug
2016-03-30