IntroductionAndroid has the following six types of layout in mobile applications:
1. Linear LayoutFirst create layout XML of linear name.Figure 1: Create Layout XMLDelete the default code in the XML file then open the graphical layout and drag a Linear Layout (Vertical ) or Linear Layout (Horizontal).Figure 2: Graphical LayoutFigure 3: Drag LinearLayoutAfter dragging any one of them then go to the code in the XML file and see.For LinearLayout (Vertical):
android:orientation="vertical"“Vertical” replace by Horizontal or delete this line then vertical convert into horizontal layout
2. Relative LayoutThe relative Layout is the default layout when we create activity.Relative is easy to use for adjusting the element in the layout.In a relative layout every element arranges itself relative to other elements or a parent element.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: