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


I encountered this strange problem.

On my layout XML, I have a single TextView , and I have the following text in it:

" Welcome to the app. \ N etc. ", string. XML .

The full string is displayed in the tablet running 4.0.

In a smartphone running 2.3.7, this \ n .

On the previous app I've made, \ n worked fine.

Anyone had to face similarly?

XML code:

  & lt; 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" & gt; & Lt; Android: layout_centerHorizontal = "true" Android: layout_centerVertical = "false" Android Android: fitsSystemWindows = "false" android: focusableInTouchMode = "true" Android: gravity = "center_vertical | center_horizontal" Android: signal = "@ string / msgWelcomeNotesHint" Android: paddingTop = "10" = "15dp" Android: layout_marginTop = "20dp" Android: fitsSystemWindows = "false" DP "Android: Text =" @ String / msgWelcomeNotes "Android: textSize =" 14dp "/> & Lt; / RelativeLayout & gt;    

After

This was a strange bug for the latest ADT 20.0 , In eclipse Juneo .

I installed a fresh, eclipse june because I loaded it with a heavy plug-in, and now looks like \ n , the same apk done in, 2.3 and 4.0 on the Android version

Besides this, some other bugs, like when creating new activity ( New-> Other-> Android Activity ), present this ADT On.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -