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 " Welcome to the app. \ N etc. ", The full string is displayed in the tablet running 4.0. In a smartphone running 2.3.7, this On the previous app I've made, Anyone had to face similarly? XML code: After This was a strange bug for the latest I installed a fresh, eclipse june because I loaded it with a heavy plug-in, and now looks like Besides this, some other bugs, like when creating new activity ( TextView , and I have the following text in it:
string. XML .
\ n .
\ n worked fine.
& 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;
ADT 20.0 , In
eclipse Juneo .
\ n , the same apk done in, 2.3 and 4.0 on the Android version
New-> Other-> Android Activity ), present this ADT On.
Comments
Post a Comment