[android] ViewPager has not been bound using JakeWharton/ViewPagerIndicator

来源:互联网 发布:快时尚销售数据报告 编辑:程序博客网 时间:2024/05/16 08:04

The way to fix this bug :

  • step 1 : add android:visibility=”gone”
<com.viewpagerindicator.TabPageIndicator            android:id="@+id/tpi_news_menu"            android:layout_width="match_parent"            android:layout_height="wrap_content"            android:theme="@style/StyledIndicators"            android:visibility="gone"/>
  • step 2 add setVisibility in initData() method
 mIndicator.setVisibility(View.VISIBLE);
0 0
原创粉丝点击