Q: Android layout isn't displayed correctly This is my code. It's just a form. If i started the applycation with my adv (Nexus S), the form is displayed fine, but if i use it with a small screen, it's not shown completely (and i can't scroll down to see the rest of the form). I used dip, but the problem is still here. Why?
    <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        >

    <TextView 
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="@string/hello_world"
            android:layout_marginTop="15dip"
            android:layout_marginBottom="25dip"
            />

    <TextView 
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="@string/edit_name"
            />
    <EditText
            android:id="@+id/edit_name"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text=""
            android:hint="@string/edit_message"
            />

    <TextView 
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="@string/edit_lastname"
            android:layout_marginTop="15dip"
            />
    <EditText
            android:id="@+id/edit_lastname"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text=""
            android:hint="@string/edit_message"
            />

    <TextView 
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="@string/edit_sex"
            android:layout_marginTop="15dip"
            />
    <EditText
            android:id="@+id/edit_sex"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text=""
            android:hint="@string/edit_message"
            />

    <TextView 
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="@string/edit_age"
            android:layout_marginTop="15dip"
            />
    <EditText
            android:id="@+id/edit_age"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text=""
            android:hint="@string/edit_message"
            />

    <Button
            android:id="@+id/form_button"
            android:layout_height="wrap_content"
            android:text="@string/button_send"
            android:layout_marginTop="15dip"
            android:layout_marginLeft="90dip"
            android:layout_width="130dip"
            />

</LinearLayout>


A: That is quite a few Views vertically on a small screen. You could create a different layout that isn't just vertical for small screens but that wouldn't really be the best way and may not look very good (actually probably wouldn't)
You could wrap the whole thing in a ScrollView so that it will scroll when it doesn't all fit on the screen, like with smaller screens.
Or you could use the Android property for this type of form called android:hint. Instead of having TextViews for the label, you would set a hint in the EditTexts to tell the user what information to enter. Ex.
<EditText
     android:id="@+id/edit_name"
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:text=""
     android:hint="@string/edit_message"
     android:hint="Please enter name here"    <!-- see this guy here. Would want to use string resources instead of hard-coded string -->
        />


A: You should wrap your LinearLayout in ScrollView. 
<ScrollView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:fillViewport="true" >

    <LinearLayout>
    ...
    </LinearLayout>

</ScrollView>

