views:

1355

answers:

1

When I define in XML a TextView, how do I add new line to it? \n seams to not work.

<TextView
            android:text="Line1: \n-Line2\n-Line3"
            android:id="@+id/txtTitlevalue"
            android:layout_width="54dip"
            android:layout_height="fill_parent"
            android:textSize="11px"
           ></TextView>
+3  A: 

Don't trust the Visual editor. Your code does work in the emu.

Macarse