I am working on my android app and now i am in the process of creating app settings menu. I have created a menu but I want to display the menu at the top of the screen rather at the bottom so I am looking for some help.
Thanks in advance.
Ali
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.
This is a tutorial for a quickAction Dialog, which you could use. – http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/
To make a default android popup menu without any libraries use the following code.
On the foutrh line, the layout that you specify is your menu layout (see below)
When you call this method, you need to do the following
In this price of code,
View pis the view at the location that you want to show the top corner of the menu. So if you happen to have a textview in the top corner, use that as the view to lodge your menu on.For more info on this look here – android menu code not working
To override the menu button function do the following