Go Back   Android Forums > Android Development > Application Development
Application Development Dev Lounge for the Coder Folks
Gamers - Check out our new sister sites!
Nintendo Wii U!    |    OUYA - $99 Android System!

test: Reply
 
LinkBack Thread Tools
Old November 20th, 2012, 09:55 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Nov 2012
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Notsure adding action item button problem in master/detail flow

I have created a project on android 3.0 version(SDK Tools rev 21 and Plat form tools 16), now I'm unable to add action item buttons in action bar my code is :

@Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // TODO Auto-generated method stub
        
        MenuItem add = menu.add("Add City");
        MenuItem delete = menu.add("Delete");
        
        add.setShowAsAction(MenuItem.SHOW_AS_ACTION_WITH_TEXT);
        delete.setShowAsAction(MenuItem.SHOW_AS_ACTION_WITH_TEXT);
        return super.onCreateOptionsMenu(menu);
    }
through this code the buttons are not visible, Please tell me how to get rid of this tiny bug. Thanks in advance.

arshadaliso is offline  
Reply With Quote
Sponsors
Old November 20th, 2012, 10:03 AM   #2 (permalink)
Senior Member
 
Digital Controller's Avatar
 
Join Date: Sep 2012
Location: Cincinnati, Ohio
Gender: Male
Posts: 8,368
 
Device(s): Nexus 7, Galaxy Nexus (toro) with JBS, (RIP) Droid Incredible CM7
Carrier: Verizon

Thanks: 356
Thanked 1,946 Times in 1,364 Posts
Default

Welcome to the forums arshadaliso, glad to have you here

I am going to move this thread into the Android Applications development forum to receive some better assistance.

Thanks for joining though and enjoy your stay
__________________
Want Faster help? Read this before posting!

I love this community and so should you! So before posting please read:
Site Rules & Guidelines and Android FAQ's
Digital Controller is offline  
Reply With Quote
Reply
Tags
action item buttons, android, android actionbar


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:42 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.