<attr name= "visible_tab_count"format="integer"/>
<declare-styleable name="ViewPagerIndicator">
<attr name= "visible_tab_count"/>
</declare-styleable> 這自定義屬性 直接報(bào)錯(cuò)
<declare-styleable name="ViewPagerIndicator">
<attr name= "visible_tab_count"/>
</declare-styleable> 這自定義屬性 直接報(bào)錯(cuò)
2016-07-27
mTriangleHeight= (int) (mTriangleWidth/2*Math.tan(Math.PI/6));改成這樣,設(shè)置角度,三角形就出來了
2016-07-14
這種代碼 表示基礎(chǔ)差的看不懂。真心覺得就是簡單的看你寫代碼。有些方法根本不知道。老師也沒有簡單的解釋下。
2016-07-06
老師,你在scroll()方法里的,當(dāng)容器移動(dòng)到tab最后一個(gè)的時(shí)候,那個(gè)if條件在加一個(gè)判斷條件就更完美了:如下:if (postion!=(titles.size() - 2)&&postion >= (mTabVisibleCont - 2) && offset > 0&& getChildCount() > mTabVisibleCont)。多加入的是:postion!=(titles.size() - 2),這樣滑動(dòng)到最后一個(gè)的時(shí)候,后面的那部分不會(huì)多余出來。
2016-06-22