You are on page 1of 14

ANDROID

LOCALIZATION,
MENUS AND DIALOGS
LANGUAGE LOCALIZATION
Language Localization is a process to change the
application context into multiple languages based on the
requirements.
Android is an overall operating system that runs on
millions of devices worldwide and among various groups.
Since the diversity range is enormous, a feature that
facilitates local languages adds an advantage to any
Android application. Implementation of such a feature
requires the need to handle text, audio files, numbers,
currency, and graphics appropriately for the locals where
our application is used.
LANGUAGE LOCALIZATION
Step by Step Implementation
Visit this link:

https://www.geeksforgeeks.org/language-localization-
in-android-with-example/
ANDROID MENU

Android Option Menu


Android Option Menus are the primary menus of android. They can be used
for settings, search, delete item etc.

https://www.javatpoint.com/android-option-menu-example
ANDROID MENU
Android Option Menu
ANDROID MENU
• Option Menu with Icon
ANDROID CONTEXT MENU
• Android context menu appears when user press long
click on the element. It is also known as floating
menu.
• It affects the selected content while doing action on it.
• It doesn't support item shortcuts and icons.

https://www.javatpoint.com/android-context-menu-
example
ANDROID CONTEXT MENU
ANDROID CONTEXT MENU
ANDROID POPUP MENU
• Android Popup Menu displays
the menu below the anchor text
if space is available otherwise
above the anchor text. It
disappears if you click outside
the popup menu.
• The android.widget.PopupMenu
is the direct subclass of
java.lang.Object class.
• https://www.javatpoint.com/
android-popup-menu-example
ANDROID ALERT DIALOG
• Android AlertDialog can be used to display the dialog message with OK and
Cancel buttons. It can be used to interrupt and ask the user about his/her choice to
continue or discontinue.
• Android AlertDialog is composed of three regions: title, content area and action
buttons.
• Android AlertDialog is the subclass of Dialog class.
ANDROID ALERT DIALOG

• https://www.javatpoint.com/android-alert-dialog-example
ANDROID CUSTOM DIALOG

A custom dialog in Android is a window


that appears on top of the current
activity with a custom layout and
content. Custom dialogs are useful for
displaying information or gathering
input from the user in a way that is
tailored to your app's specific needs.
ANDROID DIALOG AS ACTIVITY

In Android, a dialog can also be


implemented as an activity. This means
that the dialog is implemented as a
separate activity that is displayed on top
of the existing activity. This approach
can be useful if you need to implement
complex interactions or workflows in
your dialog.

You might also like