Solved

menu or tab

Posted on 2012-03-26
3
384 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Working settings for French ISP Orange "Prêt à Surfer" SIM cards for data connections only. Can't be found anywhere else !
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

747 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

9 Experts available now in Live!

Get 1:1 Help Now