(A) Layout Resources

Click this link for Layouts details

(B)UI Elements

(a) Views & ViewGroup

Views
  • Views are the fundamental building blocks used to create a user interface (UI) in an app.
  • Each view represents a visual component that the user can interact with or that displays information.
  • Views are the basic or fundamental building block/object of the user interface which is created from the View class.
  • Views is a small/large rectangular area on the screen and is responsible for drawing and event handling in the Android app.
  • View is the base class for widgets, which are used to create interactive UI components like buttons, text fields, etc.
  • Views in Android can be arranged and customized using XML layout files or programmatically through Java or Kotlin code.
  • Some common View elements used in Android applications are:-
    • Basic Views:
      • TextView: This view displays text on the screen and can be used to show static or dynamically changing text content.
      • EditText: Allows users to input text. It’s used for accepting user input such as text, numbers, passwords, etc.
      • Button: Used to represent a clickable button that triggers an action/event when pressed by the user.
      • ImageView: Used to display images or drawables on the screen.
    • Container Views:
      • ScrollView: Allows scrolling of the contents if they exceed the screen size.
      • ListView: Displays a scrollable list of items. 
      • RecyclerView:  A more advanced and efficient list view that efficiently displays large sets of data by recycling views.
      • ViewPager: Enables the user to swipe left or right to view different content screens.
      • TabLayout: Represents tabs for switching between different views or sections within an app.
      • Navigation Drawer: A sliding panel that displays app navigation options.
    • Interactive Views:
      • CheckBox: Used to represent a box that can be checked or unchecked by the user.
      • RadioButton: Used to present a set of options where only one can be selected at a time.
      • SeekBar: Used to display a draggable bar allowing the user to select a value from a range.
    • Specialized Views:
      • DatePicker and TimePicker: Allow users to select dates and times respectively.
      • WebView: Displays web content within the app, allowing for the integration of web-based features.
      • Spinner:  Represents a dropdown list allowing users to select one item from multiple options.
      • SeekBar: Provides a draggable thumb to select a value from a range, often used for adjusting settings like volume or brightness.
      • ProgressBar: Indicates the progress of an operation or task that is going on or completed.
ViewGroup
  • The ViewGroup is a subclass of View and provides an invisible container that holds other Views or other ViewGroups and defines their layout properties.

(b) Intent

Click this link for Intents details

(c) Toast

Click this link for Toast details
Categories: Android

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.