ActionBar.setCustomView doesn't seem to work

by Tom » Tue, 15 Mar 2011 17:30:42 GMT


Sponsored Links
 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?

-- 



Re: ActionBar.setCustomView doesn't seem to work

by Mark Murphy » Tue, 15 Mar 2011 19:51:04 GMT


 Well, I haven't played with action bar tabs yet, but here are two
sample projects that use custom views in the action bar:

https://github.com/commonsguy/cw-android/tree/master/Menus/ActionBar
https://github.com/commonsguy/cw-android/tree/master/Menus/ActionBarBC

The second one is a bit more complicated but is backwards-compatible
to non-Honeycomb versions of Android.




-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 


Sponsored Links


Other Threads

1. samsung galaxy

dear suhu dan rekan2 semua

as, subject saya mau nyari SGS nih..
pengennya seken harga gila nih hehe..
langsung aja dijapri ke email ini

thx atas jalurnya

-- 
===============
"Indonesian Android Community [id-android]"

PING'S mobile
Email: sa...@pings-mobile.com  Ph. (021) 96087100
---------------------
Yopie Ratjoen
Email: yo...@ratjoen.com  Ph. 08977726681
--------------------
Gila original
Email: i...@gilaoriginal.com  Ph. (031) 91555898
--------------------

Aturan Jual/Kloteran ID-Android  http://goo.gl/azW7

2. Tablet Archos 70 terbaru Ludes terjual hanya dlm waktu 24 Jam

   *Archos 70 sells out in less than 24 hours*

[image: Archos-70-oos]

Either stock was low to begin with or interest in the 7-inch Froyo tablet
(1GHz Cortex A8 CPU, microSD, WiFi b/g/n, Bluetooth, WVGA capacitive
touchscreen) exceeded expectations because the Archos 70 Internet Tablet
that went up for sale yesterday is no longer available. The $279.99 8GB
model, which was actually given an instant discount of $27 when purchased,
lost its "add to cart" button and has joined its $349.99 250GB sibling
(which hasn't been released yet) in being grayed out from the drop-down menu
and at the mercy of a "notify me" button.



Were you able to grab one while they were still available? Assuming Archos
is able to fulfill all of its orders in a timely manner, the first shipment
should include a 70IT with my name and address on it.



Sumber :
http://www.pocketables.net/2010/11/archos-70-sells-out-in-less-than-24-hours.html




*WenDroid *

-- 
===============
"Indonesian Android Community [id-android]"

PING'S mobile
Email: sa...@pings-mobile.com  Ph. (021) 96087100
---------------------
Yopie Ratjoen
Email: yo...@ratjoen.com  Ph. 08977726681
--------------------
Gila original
Email: i...@gilaoriginal.com  Ph. (031) 91555898
--------------------

<<image003.jpg>>

3. Satu lagi app keren dari Android!

4. Intisari untuk id-android@googlegroups.com - 25 Pesanpada 11 Topik

5. inputType: numeric on SGS phones

6. about wm8505 kernel configuration

7. Android OS Problem: Left-to-right alphabets are rendered incorrectly