By

In the Android developer tutorial on creating an Android tab activity (developer.android.com/reference/android/widget/TabHost.html) the layout xml for the tab host shows the tabcontent view as a framelayout which is non-scrollable.

To make the content scrollable you cant simply make the tabcontent view, at the tab host level, scrollable or you get the exception “IllegalStateException ScrollView can host only one direct child when using tab host”.
Instead, you have to make each tab content activitie’s layout xml scrollable by making the upper level container a ScrollView.
, that is, the tab host xml remains un-changed but the xml of an individual tab activity would look something like:






Share