Ran into the same issue earlier but found a good working sample here: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/ActionBarDisplayOptions.html
Sample code: ... ActionBar ab = getActionBar(); ab.setCustomView(customView, newActionBar.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.MATCH_PARENT)); ab.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM); ... Hope it helps! On Monday, March 14, 2011 9:45:53 PM UTC-4, Tom wrote: > > I'm attempting to use the 'setCustomView' method of the ActionBar, but > am unable to load my (very basic) layout. I took a look at the > Honeycomb-Gallery sample, which also references > ActionBar.setCustomView. After removing the code which adds the tabs > to the ActionBar and failing to see the "Hello Action Bar" text from > that layout file, I'm unconvinced the sample is correct. Is there > anything I might be missing here? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en