Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next line #206

Open
Aecttann opened this issue Nov 14, 2019 · 3 comments
Open

Next line #206

Aecttann opened this issue Nov 14, 2019 · 3 comments

Comments

@Aecttann
Copy link

Aecttann commented Nov 14, 2019

I am can't to use "\n" or "\r" or "\n\r" in setContentText(tariffDescription).
description = String.format("%s%n%s", "Name: " + name + "\r\n", "Cost: " + amount);

I have tried a lot of variations, but all of them are not working.

@leewust
Copy link

leewust commented Nov 29, 2019

same to you

@zswh111
Copy link

zswh111 commented Dec 12, 2019

try to use
instead of "\n"
source code is ↓
mContentTextView.setText(Html.fromHtml(mContentText));

@obaidjatoi
Copy link

Hi, it will accept only html tahs, for line break use
instead of \n

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

No branches or pull requests

4 participants