The building blocks of any software interface are user interface (UI) controls. When used wisely, they may effectively guide customers through your product, making it feel familiar and learnable even if they have never used it before.
TextView, EditText, Buttons, Checkboxes, Progressbars, Spinners, and other UI or input controls are all available in Android. The user interface (UI) or input controls in an Android application are depicted in the diagram below.
An Android app's user interface (UI) is organised as a hierarchy of layouts and widgets. The layouts are ViewGroup objects, which are containers that govern the placement of their child views on the screen. Widgets are View objects, which include UI elements like buttons and text boxes.
OxygenOS (By OnePlus)
Stock Android (By Google)
OneUI (By Samsung)
MIUI (By Xiaomi)
ColorOS (By OPPO)
LinearLayout is ideal for showing single-row or single-column layouts. If you need to specify the space distribution, add layout weights to the child views. If you need to place views in relation to siblings or parents, use a RelativeLayout or, better yet, a ConstraintLayout.