課程
/移動(dòng)開(kāi)發(fā)
/Android
/Android-自定義ViewPager指示器
如圖所示:
2016-03-11
源自:Android-自定義ViewPager指示器 2-6
正在回答
我是在
if (position >= (visibleTabCount-1) && offset>0 && itemcount>visibleTabCount&& ? ? position<itemcount-2 ? )
加了position<itemcount-2 ? ,也可完美解決
this.socll那加個(gè)判斷if (position!=getChildCount()-2)
4個(gè)倍數(shù) 弄多個(gè) 不就不奇怪了嗎
舉報(bào)
帶領(lǐng)大家實(shí)現(xiàn)最火爆的跟隨型指示器,學(xué)完保準(zhǔn)壓倒一片
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-12-20
我是在
if (position >= (visibleTabCount-1) && offset>0 && itemcount>visibleTabCount&&
? ? position<itemcount-2 ? )
加了position<itemcount-2 ? ,也可完美解決
2016-10-03
this.socll那加個(gè)判斷if (position!=getChildCount()-2)
2016-03-11
4個(gè)倍數(shù) 弄多個(gè) 不就不奇怪了嗎