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

Textview cannot accept new line from Resources strings #758

Open
@AbhiSNSoft

Description

@AbhiSNSoft

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."

Activity

tanks007

tanks007 commented on Aug 27, 2019

@tanks007

@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

AbhiSNSoft commented on Aug 27, 2019

@AbhiSNSoft
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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Textview cannot accept new line from Resources strings · Issue #758 · Kotlin/anko