I've just upgraded to ABS 4.02 (from the 3.x version) and everything
is working fine on my 4.03 device.
It's not working at all on my 2.2 and 3.x emulators, with the
following exception:
04-25 00:07:50.704: E/AndroidRuntime(408): Caused by:
java.lang.RuntimeException: Couldn't find content container view
04-25 00:07:50.704: E/AndroidRuntime(408): at
com.actionbarsherlock.internal.ActionBarSherlockCompat.generateLayout(ActionBarSherlockCompat.java:
1047)
04-25 00:07:50.704: E/AndroidRuntime(408): at
com.actionbarsherlock.internal.ActionBarSherlockCompat.installDecor(ActionBarSherlockCompat.java:
912)
04-25 00:07:50.704: E/AndroidRuntime(408): at
com.actionbarsherlock.internal.ActionBarSherlockCompat.setContentView(ActionBarSherlockCompat.java:
846)
04-25 00:07:50.704: E/AndroidRuntime(408): at
com.actionbarsherlock.app.SherlockFragmentActivity.setContentView(SherlockFragmentActivity.java:
309)
I can't figure out why it could be happening.
This occurs simply on inflating my main layout, with setContentView in
a SherlockFragmentActivity. The layout is shown below.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="
http://schemas.android.com/apk/res/
android"
android:id="@+id/root"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.viewpagerindicator.TabPageIndicator
android:id="@+id/titles"
android:layout_height="wrap_content"
android:layout_width="fill_parent" />
<android.support.v4.view.ViewPager
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:id="@+id/pager"/>
</LinearLayout>
As you can see I'm using ViewPagerIndicator 2.2.3 also.
Thanks,
Luke.