What I mean is, is it possible to change the text \"This text is blue\" to the color blue in a single string? There must be a way...
Try this..
TextView update= (TextView) dialog.findViewById(R.id.address);
String colorText= "Driver is nearby "
+ ""
+ "43, KR Rd, Tata Silk Farm, Jayanagar"
+ " "
+ " and he is "
+ ""
+ "11 km"
+ " "
+ " & "
+ ""
+ "20 mins"
+ " "
+ " away from your current location.";
update.setText(Html.fromHtml(colorText));
and the result will be like this..
