Hey i am creating a android textview which contains come from json.. It is fine but i want to change color of the part of the text view.. dont know how
here is my details-
JSONArray jArray= new JSONArray(result);
for(int i=0; i<jArray.length();i++)
{
JSONObject getjson=jArray.getJSONObject(i);
s= "Title: " +getjson.getString("tender_title")+
"\n\nTender id: " +getjson.getString("tender_id")+
"\n\nReference no:\n"+getjson.getString("tender_reference_no")+
"\n\nQuantity: " +getjson.getString("tender_item_details_quantity");
}
TextView txt=(TextView) findViewById(R.id.textView1);
txt.setText(s);
On the above code is fine..that sets all the value in the text view but i want to change the color of "Title" ,"Tender id", "Quantity" etc.. from above string s please help
