Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Find everything you need for the Galaxy S5 and discuss it in our S5 forum!
Have you seen that OnePlus One's awesome camera?? The forum is over here!

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 :

[HIGH]@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_T EXT);
delete.setShowAsAction(MenuItem.SHOW_AS_ACTION_WIT H_TEXT);
return super.onCreateOptionsMenu(menu);
}[/HIGH]

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
sponsored links
Old November 20th, 2012, 10:03 AM   #2 (permalink)
The Real Bass Creator
 
Digital Controller's Avatar
 
Join Date: Sep 2012
Location: Cincinnati, Ohio
Gender: Male
Posts: 10,682
 
Device(s): Galaxy Note 3 with JellyBeans 6, Nexus 7, (RIP) Galaxy Nexus with 4.4 SlimKat, (RIP) Droid Incredibl
Carrier: Verizon

Thanks: 526
Thanked 2,770 Times in 1,806 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 10:44 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.