开发者

Missing Action Bar in Android 3.0 (Honeycomb) Emulator under Windows 7

开发者 https://www.devze.com 2023-03-24 13:05 出处:网络
The title pretty much says it all: I finally got my Lenovo Win7 machine updated to have the tools, platform tools and SDK su开发者_高级运维pport to build for Honeycomb, yet when I launch the emulator,

The title pretty much says it all: I finally got my Lenovo Win7 machine updated to have the tools, platform tools and SDK su开发者_高级运维pport to build for Honeycomb, yet when I launch the emulator, I see no Action Bar.

Oh, and I did double check: I do have <uses-sdk android:minSdkVersion="11" android:targetSdkVersion="11"/> (redundant, I know) in AndroidManifest.xml.

Reading http://developer.android.com/guide/topics/ui/actionbar.html leaves me thinking that should be enough, it should show up even for a simple "Hello, World" app. Yet it does not. For that matter, neither do any other buttons: all I have is a huge screen with a gradient display of hexagonal tiling of the plane (obviously meant to look like a honeycomb), a Google search widget, a button for 'Apps', and a '+' sign (I am assuming the six tiny rectangles ar epart of the Apps button, but maybe they are for changing home screen? Maybe that IS the appearance of the Action Bar for the home screen app?)


You are looking at the home screen. That is not your application. The home screen does not have an action bar, at least not of the same style as you get in regular apps.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号