MenuItem mi = new MenuItem();
like above code line, but it not support by android, and only using
MenuItem mi = menu.add(,,,,) ,can get a MenuItem instance, but i don’t want to add a menuitem to a menu. is any way other to create a MenuItem ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You arent adding any content to it by the looks of it. try something like
Im not completely sure if this is how you do it as I am not able to look at the docs atm so yeah