Search code examples
androidgreendroid

how add more item in actionbar (greendroid)


how to add "more" item inside the actionbar(greendroid) ? How can i add three action menu item inside the actionbar. Anyone know how to add more and customize it .

enter image description here


Solution

  • You have to modificate you style.xml

    <style name="CusttomTheme.ActionBar" parent="Theme.GreenDroid.NoTitleBar">
    .......
    <item name="gdActionBarMaxItems">5</item>
    .......
    </style>
    

    In that case you insert 5 item in the actionBar