On Mon, Jun 20, 2011 at 10:26 AM, Simon Platten <[email protected]> wrote: > According to the Android link I posted earlier, this functionality has been > available since version 1 of the API. My target is currently set for > Android 2.1 > > http://developer.android.com/reference/android/widget/TabWidget.html > > Top right, "Since: API Level 1"
Note that the Rendering Target is not the same as the project SDK target. You can have your project targeted at say Android 2.1, but still -render- the page with Android 3.0. The rendering target is a tool-specific thing which lets you choose which version of Android you want us to render your layout with, regardless of what the -minimum- version of your project is set to. The layout editor uses a "layout library" to render the layout for any given SDK, and that's what the rendering-target is really selecting. There is a separate version of this layout library, one for each version of the SDK. TabHosts were not handled correctly by the layout library until recently; it was fixed in the 3.0 version, and that fix is being -backported- to earlier versions. For now, you're going to get much more accurate (WYSIWYG) layouts if you use the latest version of the rendering library possible. The best versions are the preview bits released at http://tools.android.com/download/ (the latest bits also require the ADT 12 preview version). If you want to stick with the official bits, you can use ADT 11 but make sure you pick Android 3.0 or Android 3.1 as the rendering target. As soon as the new layout library ports are done this will work with older rendering targets as well. -- Tor -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

