Drawable d=getResources().getDrawable(R.drawable.background_image_name);
getActionBar().setBackgroundDrawable(d);
The above code sets the background image for the action bar.
Hope it helps.
More Related Contents:
- ActionBar text color
- getActionBar() returns null
- How to hide action bar before activity is created, and then show it again?
- How to add a Dropdown item on the action bar
- Changing overflow icon in the action bar
- SearchView’s OnCloseListener doesn’t work
- Remove application icon and title from Honeycomb action bar
- Custom Translucent Android ActionBar
- How can I customize the Action Mode’s color and text?
- Android: How to change the ActionBar “Home” Icon to be something other than the app icon?
- Displaying icon for menu items of Action Bar in Honeycomb Android 3.0
- How to add submenu items to ActionBar action in code?
- Animate the transition between fragments
- How to change the background color of Action Bar’s Option Menu in Android 4.2?
- Implementing SearchView in action bar
- Actionbar not shown with AppCompat
- Display back button on action bar
- actionbar up navigation with fragments
- Hiding the ActionBar on RecyclerView/ListView onScroll
- Change color of the overflow button on ActionBar
- Using ActionBarSherlock With the New SupportMapFragment
- Is there a way to get references for all currently active fragments in an Activity?
- How to add Action bar options menu in Android Fragments
- How can I change Action Bar actions dynamically?
- (Deprecated) Fragment onOptionsItemSelected not being called
- Technical details of Android Garbage Collector
- Changing ActionBar tabs underline color programmatically
- How change position of popup menu on android overflow button?
- Adding spinner to ActionBar (not Navigation
- What is the Default ActionBar Title Font Size?