Android: LinearLayout — не указано ни вертикальное, ни горизонтальное расположение.

Я следил за учебником и заметил, что есть линейный макет, который не указан ни по вертикали, ни по горизонтали. В другом уроке мне сказали, что это в основном необходимо... что значит не иметь ни того, ни другого? это плохо? это было заключено в другой linearlayout, который DID

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

    <LinearLayout
        android:id="@+id/group"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" >

        <Button
            android:id="@+id/add"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Add New" 
            android:onClick="onClick"/>

        <Button
            android:id="@+id/delete"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Delete First" 
            android:onClick="onClick"/>

    </LinearLayout>

    <ListView
        android:id="@android:id/list"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/hello" />

 </LinearLayout>
7
задан Brandon Ling 20 June 2012 в 17:31
поделиться