Answers for "show html text in textview android"

0

set html text android java

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
    textView.setText(Html.fromHtml("<h2>Title</h2><br><p>Description here</p>", Html.FROM_HTML_MODE_COMPACT));
} else { 
    textView.setText(Html.fromHtml("<h2>Title</h2><br><p>Description here</p>"));
}
Posted by: Guest on April-12-2020
1

set textview text android java

//java,set textview text android studio,2021/09.23
TextView textView;

textView = findViewById(R.id.textView); //in your OnCreate() method
textView.setText("Hello World");
Posted by: Guest on September-23-2021
2

get text from textview android

String a = tv.getText().toString();
     int A = Integer.parseInt(a);
Posted by: Guest on May-20-2021

Code answers related to "show html text in textview android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language