0% found this document useful (0 votes)
4 views

Android View Components

The document outlines various Android view components used for building user interfaces, categorized into Basic View Components, Layout Components, Media and Graphics, Navigation Components, Dialogs, and Notifications. It provides descriptions of specific components like TextView, Button, LinearLayout, and AlertDialog, detailing their functionalities and use cases. The document serves as a guide for developers to understand and utilize these components effectively in their applications.

Uploaded by

vikkykr7487
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Android View Components

The document outlines various Android view components used for building user interfaces, categorized into Basic View Components, Layout Components, Media and Graphics, Navigation Components, Dialogs, and Notifications. It provides descriptions of specific components like TextView, Button, LinearLayout, and AlertDialog, detailing their functionalities and use cases. The document serves as a guide for developers to understand and utilize these components effectively in their applications.

Uploaded by

vikkykr7487
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Android View Components

Ashish kumar (230101120240)

Vikash kumar (230101120240)

Vikky kumar (230101120240)

Rupam kumara (230101120240)

Rakesh Raushan (230101120226)


Types of View Components

1. Basic View Components


2. Layout Components
3. Media and Graphics
4. Navigation Components
5. Dialogs and Notifications

01
Introduction :-

Android provides a wide range


of view components that you
can use to build user interfaces
in your applications. These
components are part of the
Android View hierarchy and can
be divided into several
categories based on their
functionality:
Basic View Components

TextView: Displays static or dynamic text to the user. Commonly used for labels or
instructions.
EditText: A text input field where users can enter or edit text. Supports various input
types.
Basic View Components

Button: A clickable component used to perform an action when tapped. Can display
text or icons.
ImageView: Displays images in various formats. Supports scaling and resource-
based images.
CheckBox: A toggleable component allowing users to select or deselect an option.
Multiple CheckBoxes can be selected at once.
Layout Components

LinearLayout: Arranges child views in a single row (horizontal) or column (vertical)


sequentially. It is simple to use but may become inefficient with many views.

RelativeLayout: Positions child views relative to each other or the parent container.
Useful for creating more complex layouts but is less efficient than ConstraintLayout.

ConstraintLayout: A highly flexible and efficient layout that positions views using
constraints relative to other views or parent boundaries. Ideal for complex, responsive
layouts.
Layout Components

FrameLayout: A simple container that displays a single child view or stacks


multiple views on top of each other. Commonly used for overlays or fragments.

TableLayout: Arranges views into rows and columns, with each row containing
multiple cells. Often used for forms or tabular data.
VideoView: A view specifically designed to play video content from a URI or
resource. It handles media playback controls like play, pause, and stop with
minimal setup.
SurfaceView: Provides a dedicated drawing surface for custom rendering in
2D or 3D graphics. It is often used in gaming or apps requiring advanced
graphical operations.
Navigation Components

i) BottomNavigationView: Displays a bar at the bottom of the screen with navigation


items (icons and text). It's commonly used for quick access to primary sections of an
app.

ii) NavigationView: A sliding menu (navigation drawer) that appears from the side of the
screen. It typically holds navigation links or settings options.

iii) Toolbar: A flexible and customizable top app bar that can include navigation buttons,
titles, menus, and other UI elements. It replaces the older ActionBar.

iv) TabLayout: Displays tabs horizontally, allowing users to switch between different
views or content by tapping on a tab. Often paired with ViewPager for swipeable content.
Dialog Components

Dialogs are small windows that prompt the user to make a decision or enter
information.

•AlertDialog: A common dialog used to show alerts, messages, or options


(e.g., OK/Cancel buttons). Can display a title, message, and custom layouts.

02
Notification Components
Notifications are messages displayed outside the app's UI to provide updates or
reminders.
•Toast: A small, temporary popup message that provides feedback or information. It
disappears automatically after a short time.
•Snackbar: A lightweight, transient message displayed at the bottom of the screen.
Supports actions (e.g., "UNDO").
Thank you!

w w w .y o u rw e b s ite .c o m

+ 9 1 6 2 0 4 2 1 8 3 8

You might also like