ViewPager has not been bound.

2015年1月28日 由 Creater 留言 »

出错描述:
Exception raised during rendering: ViewPager has not been bound.
Exception details are logged in Window > Show View > Error Log

java.lang.IllegalStateException: ViewPager has not been bound.
at com.viewpagerindicator.TabPageIndicator.setCurrentItem(TabPageIndicator.java:240)
at com.viewpagerindicator.TabPageIndicator.onMeasure(TabPageIndicator.java:116)
解决方案:
xml中添加:android:visibility=”gone”

广告位

发表评论

你必须 登陆 方可发表评论.