Computer scienceMobileAndroidUser InterfaceUI componentsContainers

Linear, Frame, Relative layouts

Attributes

Report a typo

Read this short piece of code, and relying on attributes try to determine which layout is used there.

Tip: Pay attention to the attributes used in this View.

<TextView
    android:id="@+id/button"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_weight="1"
    android:text="Hello World!" />
Enter a short text
___

Create a free account to access the full topic