Setting : Android Studio using JAVA

Layout

  • define the structure for a user interface in you app (e.g. activity)
  • All elements built using a hierarchy of View and ViewGroup objects
  • View objects == widgets e.g. Button, TextView
  • ViewGroup pbjects == Layout e.g. LinearLayout, ConstraintLayout

How to Declare a Layout

Declare UI elements in XML

Instanitale layout elements at runtime

Reference

AndroidDevelopers

  • what is interface?