This shows you the differences between two versions of the page.
dapm:laboratoare:02 [2021/03/22 21:53] ioana_maria.culic [Laboratorul 02.] |
dapm:laboratoare:02 [2021/03/23 10:43] (current) ioana_maria.culic [Lab 02 - Layouts] |
||
---|---|---|---|
Line 8: | Line 8: | ||
\\ | \\ | ||
\\ | \\ | ||
+ | |||
+ | ** Example: ** | ||
+ | |||
+ | <code> | ||
+ | <LinearLayour xmlns:android="http://schemas.android.com/apk/res/android" | ||
+ | android:layout_width="fill_parent" | ||
+ | android:layout_height="fill_parent" | ||
+ | android:orientation="vertical"> | ||
+ | |||
+ | ..... | ||
+ | </LinearLayout> | ||
+ | </code> | ||
**Fill_parent**(renamed **MATCH_PARENT** in API Level 8 and higher) vs **Wrap_content** \\ | **Fill_parent**(renamed **MATCH_PARENT** in API Level 8 and higher) vs **Wrap_content** \\ | ||
- Setting the layout of a widget to __fill_parent__ will force it to expand to take up as much space as is available within the layout element it's been placed in. It's roughly equivalent of setting the dockstyle of a Windows Form Control to Fill.\\ | - Setting the layout of a widget to __fill_parent__ will force it to expand to take up as much space as is available within the layout element it's been placed in. It's roughly equivalent of setting the dockstyle of a Windows Form Control to Fill.\\ |