Android Layouts

From bibbleWiki
Jump to navigation Jump to search

Introduction

View Hierarchy can be split into types types

  • Margin is the space around the widget
  • Padding is the space within the widget
  • Gravity is the position of the widget within the widget its self
  • Layout Gravity is the position of the widget within its parent

Here shows the difference between layout_gravity and gravity.

Layouts

Linear

These are like rows and columns in flex box. Items are wapped. File:Android Lineaar.png