Solved

menu or tab

Posted on 2012-03-26
3
387 Views
Last Modified: 2012-06-27
IN android what is the diference between a menu / a tab or a button ?

If the menu option can load a file it then becomes to look like a tab?
IF the menu option does something on a click then it becomes a button ?

http://www.androidhive.info/2011/09/how-to-create-android-menus/
0
Comment
Question by:jagguy
3 Comments
 
LVL 47

Accepted Solution

by:
for_yan earned 500 total points
ID: 37769697
read this - it has the tour of different kinds of menus, options, etc.
http://developer.android.com/guide/practices/ui_guidelines/menu_design.html
0
 

Author Comment

by:jagguy
ID: 37769713
ok what I didnt find is where do i go when i select a menu option?

Can I run another java file somehow as the options in the examples I saw just run a few lines of code .

Do menu options usually poont to another file in android?
0
 
LVL 8

Expert Comment

by:santhanasamy
ID: 37770567
Hi jagguy,

Purpose of these 3 elements is different.... It is upto the programmer when to use what. Each one will have their own purpose.

Android provides different ways to give user interface to the user,,,,,
Menus
Menus are useful for displaying additional options that are not directly visible on the main UI of an application. There are two main types of menus in Android:
http://mobiforge.com/designing/story/understanding-user-interface-android-part-4-even-more-views
http://eagle.phys.utk.edu/guidry/android/androidUserInterface.html
http://developer.android.com/guide/topics/ui/menus.html

Button
Button is one of he common widget in android frame work.
Represents a push-button widget. Push-buttons can be pressed, or clicked, by the user to perform an action.
http://developer.android.com/reference/android/widget/Button.html
It is a direct widget/View. It will be always visible...

Tab
To create a tabbed UI, we need to use a Tab. It is generally a ActivityGroup.
It will be usefull to embad more than one activity into one activity group....

From your comment..
1)      If the menu option can load a file it then becomes to look like a tab?
IF the menu option does something on a click then it becomes a button ?

This is upto the programmers implementation. Instead of loading a different file/launching a different activity we can play some songs in the mediaplayer.

2)
http://www.androidhive.info/2011/09/how-to-create-android-menus/

what I didnt find is where do i go when i select a menu option?
Example from the above link  , They just showed a toast...
Once menu item is clicked the action for that menu item will be performed.
If you launch the differnt activity then current activity will be closed...If you just show the toast then it will show the toast( It will be in the same activity)

Can I run another java file somehow as the options in the examples I saw just run a few lines of code .
Yes you can.,,..
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an explanation of a simple data model to help parse a JSON feed
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now