Kris
Kris

Reputation: 921

Implement Actionbar in Android Honeycomb

How to implement the ActionBar in android honeycomb? How to customize the action bar? Any help would be appreciated.

Upvotes: 1

Views: 1371

Answers (2)

0xC0DED00D
0xC0DED00D

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

Its not blank
Its not blank

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

Related Questions