Android Tutorial 32 - Putting Things "Linear"ly in a "Layout"

Опубликовано: 24 Март 2014
на канале: Code Here Now
718
1

This is an excerpt from Learn by Doing - Android for Beginners on Udemy.
https://www.udemy.com/learn-by-doing-...

This video will teach you how to use the LinearLayout and its properties.


Things to Remember
-------------------------------
1. LinearLayout arranges it's child views either in a single row or a single column depending upon it's orientation.

2. The orientation property can either be horizontal (single row) or vertical (single column).

3. Use the gravity property to specify the alignment of the child views within the LinearLayout. You can use a combination of different gravity values.

4. The child view's weight property decides how the free space is distributed among the children. It is a floating point value and can take up any value.

5. Empty space is distributed vertically among the children when a weight property is specified in vertical orientation and horizontally in the horizontal orientation.


Смотрите видео Android Tutorial 32 - Putting Things "Linear"ly in a "Layout" онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Code Here Now 24 Март 2014, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 718 раз и оно понравилось 1 людям.