I get this nice piece of code from http://developer.android.com/resources/samples/ActionBarCompat/index.html, which able to make ActionBar GUI on both Android 2 and Android 3 platform.
However, I was wondering, had anyone tried to change the color of ActionBar. Note that, the following code will make crash at Android 2, as in Android 2, it doesn't have ActionBar. public void onCreate(Bundle savedInstanceState) { ... // Crash in Android 2. getActionBar().setBackgroundDrawable(getResources().getDrawable(R.drawable.ad_action_bar_gradient_bak)); } -- 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