98.6k views
3 votes
The ________________ attribute aligns a widget with the top, bottom, center, left, or right of its linear layout.

1 Answer

4 votes

Final answer:

The gravity attribute aligns a widget with the top, bottom, center, left, or right of its linear layout.

Step-by-step explanation:

The given question is related to gravity.

The gravity attribute aligns a widget with the top, bottom, center, left, or right of its linear layout. The gravity attribute accepts several values, including 'top', 'bottom', 'center', 'left', and 'right'. For example, to align a widget to the top of its linear layout, you would use the gravity='top' attribute.

User Yosher
by
7.0k points