New line (\n) in Android XML. Android 4.1 SDK Compatibility issue?

nati586

New Member
I faced this strange problem.On my layout xml, I have a single \[code\]TextView\[/code\], and in it I have the following text:"Welcome to App.\n etc" , defined in \[code\]strings.xml\[/code\].In a tablet running 4.0 displays the full string.In a smartphone running 2.3.7 it displays just before the \[code\]\n\[/code\].On previous apps I have created, \[code\]\n\[/code\] worked okay.Anybody faced something similar?XML Code:\[code\]<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:id="@+id/textViewWelcomeNotes" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="false" android:layout_centerHorizontal="true" android:layout_centerVertical="false" android:layout_margin="15dp" android:layout_marginTop="20dp" android:fitsSystemWindows="false" android:focusableInTouchMode="true" android:gravity="center_vertical|center_horizontal" android:hint="@string/msgWelcomeNotesHint" android:paddingTop="10dp" android:text="@string/msgWelcomeNotes" android:textSize="14dp" /></RelativeLayout>\[/code\]
 
Back
Top