Define a LinearLayout with height="wrap_content" and width="fill_parent".
You can overcome your problem with two ways. Either add android:layout_below="@id/TextViewExample" in your Textviews or use android:layout_marginTop="10dip"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@android:color/black" >
android:id="@+id/firsttext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/white"
android:text="first"
android:layout_marginTop="10dip"
android:textAppearance="?android:attr/textAppearanceMedium" />
android:id="@+id/secondtext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/firsttext"
android:background="@android:color/white"
android:text="second"
android:layout_below="@id/firstText"
android:layout_marginTop="20dip"
android:textAppearance="?android:attr/textAppearanceMedium" />
android:id="@+id/thirdtext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/secondtext"
android:background="@android:color/white"
android:text="third"
android:layout_marginTop="30dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_below="@id/secondtext"/>