Skip to main content
deleted 86 characters in body
Source Link
Michael Yaworski
  • 13.5k
  • 19
  • 72
  • 98

i'm facing a bit of difficulty right now. II don't know how to make a specific text on TextView becamebecome BOLD.

its like this

txtResult.setText(id+" "+name);

txtResult.setText(id+" "+name); 

I want the output to be like this = 1111 neil:

1111 neil

"id"id and "name"name are variablevariables that iI have retrieveretrieved the value from database, and I want to make the idid to bold, but only the idid so the namename will not affected, I have no idea how to do this.

pardon me, i just recently started to learn android

i'm facing a bit of difficulty right now. I don't know how to make a specific text on TextView became BOLD.

its like this

txtResult.setText(id+" "+name);

I want the output to be like this = 1111 neil

"id" and "name" are variable that i have retrieve the value from database, and I want to make the id to bold, but only the id so the name will not affected, I have no idea how to do this.

pardon me, i just recently started to learn android

I don't know how to make a specific text on TextView become BOLD.

its like this

txtResult.setText(id+" "+name); 

I want the output to be like this:

1111 neil

id and name are variables that I have retrieved the value from database, and I want to make the id to bold, but only the id so the name will not affected, I have no idea how to do this.

Source Link
Budi Darmawan
  • 3.8k
  • 3
  • 17
  • 7

how to make a specific text on TextView BOLD

i'm facing a bit of difficulty right now. I don't know how to make a specific text on TextView became BOLD.

its like this

txtResult.setText(id+" "+name);

I want the output to be like this = 1111 neil

"id" and "name" are variable that i have retrieve the value from database, and I want to make the id to bold, but only the id so the name will not affected, I have no idea how to do this.

pardon me, i just recently started to learn android