Android View Components
Android View Components
01
Introduction :-
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
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
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
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.
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