Reputation: 921
How to implement the ActionBar in android honeycomb? How to customize the action bar? Any help would be appreciated.
Upvotes: 1
Views: 1371
Reputation: 20368
You can also use the following resource to know more about implementing the action bar-
http://developer.android.com/guide/topics/ui/actionbar.html
Upvotes: 3
Reputation: 3095
try this
ActionBar actionBar = getActionBar();
LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
View view = inflater.inflate(R.layout."id", null);
// lay.setLayoutParams(new ActionBar.LayoutParams(
// android.app.ActionBar.LayoutParams.MATCH_PARENT,
// android.app.ActionBar.LayoutParams.MATCH_PARENT));
//Not wrking
actionBar.setCustomView(view);
actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
Upvotes: 5