TabHostExtras updated to version 1.90
Hi.
Sorry for the delay in replying.
I don't have an ICS device to test on but used the emulator - API level 15.
I ran the demo code on a Gingerbread device and the ICS emulator and used the SDK tool
Hierarchy Viewer to inspect the TabHost.
I suspected that with ICS a change had been made and ICS used a LinearLayout where previous versions used a RelativeLayout - that would explain the exception you posted.
But there is no change, the clickable Tabs are RelativeLayouts in both Gingerbread and ICS.
The demo code also runs with no problems on the emulator, using the Menu option
Change title calls the TabHostExtras
setTabTitle method and it works with no exceptions.
Then i updated the manifest, adding:
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14" />
And the exception is now raised.
Hierarchy Viewer now shows what i first thought - ICS is using a LinearLayout where previous versions used a RelativeLayout but only with that manifest edit.
Both LinearLayout and RelativeLayout are of type ViewGroup so a little update to the library code seems to have fixed everything.
Version 1.90 is attached to the first post in this thread.
Martin.