Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Textview cannot accept new line from Resources strings #758

Open
AbhiSNSoft opened this issue Aug 16, 2019 · 2 comments
Open

Textview cannot accept new line from Resources strings #758

AbhiSNSoft opened this issue Aug 16, 2019 · 2 comments

Comments

@AbhiSNSoft
Copy link

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
Copy link

@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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants