KIO
Kreative Ideen online
android:gravity

android:gravity

android:gravity=”value”

android:gravity lets you say where you want the view’s contents to appear inside the view

ValueWhat it does
topPuts the view’s content at the top of the view
bottomPuts the view’s contents at the bottom of the view.
leftPuts the view’s content at the left of the view
rightPuts the view’s contents at the right of the view
startPuts the view’s content at the start of the view
endPuts the view’s content at the end of the view
center_verticalCenters the views contents vertically
center_horizontalCenters the views content horizontally
centerCenters the views contents vertically and horizontally
fill_verticalMakes the views contents fill the view vertically
fill_horizontalMakes the views constents fill the view horizontally
fillMakes the views contents fill the view vertically and horizontally