1

Android - v4 PagerTabStrip causes IllegalStateException when create is slow

view story
linux-howto

http://stackoverflow.com – I'm using v4 ViewPager with PagerTabStrip in my AppWidget configuration xml, and it works perfectly most of the time. However, I get this error (app crash) when some processing involved while loading the view: java.lang.IllegalStateException: Must measure with an exact width at android.support.v4.view.PagerTitleStrip.onMeasure(PagerTitleStrip.java:428) at android.view.View.measure(View.java:8335) at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1350) at android.view.View.measure(View.java:8335) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java (HowTos)