Kotlin / anko

Pleasant Android application development
Apache License 2.0
15.88k stars 1.29k forks source link

Textview cannot accept new line from Resources strings #758

Open AbhiSNSoft opened 5 years ago

AbhiSNSoft commented 5 years ago

https://github.com/Kotlin/anko/wiki/Anko-Layouts-Examples#textview

If I use text = "I want new line.\nHere is the new line." this is printing as "I want new line. Here is the new line."

but if I use textResource = R.string.newline this is printing as "I want new line.\nHere is the new line."

tanks007 commented 5 years ago

@AbhiSNSoft , are you able to preview your anko DSL with anko support? If yes please provide the anko plugin, IDE, kotlin and SDK versions.

AbhiSNSoft commented 5 years ago

No, I cannot preview my anko DSL with anko support.

Anko plugin: 0.10.8 IDE: 3.4.1 Kotlin: 1.3.10 SDK versions : 27