Android

Android User Interface

Android User Interface

The main building block of the User Interface is the View object that can be created using the View class. It is used to provide a rectangular area on the screen and allows drawing on the screen with event handling. View class is the base class that comes under the Android Widgets category. Android Widgets are used to create interactive UI components such as input fields, buttons, texts, etc. 
View class has a default subclass named as ViewGroup that provides an invisible container to hold Views or other subclasses such as ViewGroups. You also need to define the layout properties in the subclass defined under the View class. 

There are several layouts in Android that you can use in your application development. These layouts include:

  • Relative Layout: This layout is used to display child views in relative positions. 
  • Linear Layout: This type of layout is a view group that allows you to align all children in a single row whether it is vertical or horizontal. 
  • Absolute Layout: It allows you to specify the correct location of its children.
  • List View: It is a view group layout that shows a list of scrollable items.
  • Grid View: Grid view is a view group layout that shows items in a two-dimensional grid that is scrollable too. 
  • Frame Layout: This type of layout is a view group that displays a single view of the screen. 
     

Top course recommendations for you

    Python Practice Codes
    1 hrs
    Beginner
    8.5K+ Learners
    4.37  (435)
    VLOOKUP in Excel
    1 hrs
    Beginner
    44.8K+ Learners
    4.57  (3373)
    Blockchain Process
    1 hrs
    Beginner
    6.9K+ Learners
    4.56  (578)
    GO Programming Language
    1 hrs
    Beginner
    6.7K+ Learners
    4.48  (510)
    Conditional Formatting in Excel
    1 hrs
    Beginner
    17.4K+ Learners
    4.51  (1637)
    Fibonacci Series in Python
    1 hrs
    Beginner
    2.2K+ Learners
    4.6  (91)
    Design App
    1 hrs
    Beginner
    18.1K+ Learners
    4.44  (1180)
    Pivot Tables in Excel
    1 hrs
    Beginner
    21.4K+ Learners
    4.54  (2301)
    Divide and Conquer Algorithms
    1 hrs
    Beginner
    2.3K+ Learners
    4.57  (332)
    QR Code Generator in Python
    1 hrs
    Beginner
    4.7K+ Learners
    4.36  (210)