What is the difference between linear and RelativeLayout in Android?

Hằng Đoàn

New member
What is the difference between linear and RelativeLayout in Android?
Answer
The difference between linear and relative layout in android is that in linear layout, the “children” can be placed either horizontally or vertically, but, in relative layout, the children can be placed with relative distance from each other. This is the difference between linear and relative layouts.
 

Tìm kiếm

Back
Top