How To Set Text In Bold Before " | "
This is my code : for (int i = indexRowStart; i < indexRowEnd; i++) { Element e = (Element) nl.item(i); // adding each child node to HashMap key => value map = ne
Solution 1:
Try Html.fromHtml for make some text bold.
title.setText(Html.fromHtml("<b>30</b> | Section 120 of the Income-tax Act, 1961 – Jurisdiction of"));
Solution 2:
String Heading = parser.getValue(e, KEY_NAME);
int a=Heading.indexOf("|");
String beforeSubString=Heading.substring(0, a);
String afterSubString=Heading.substring(a, Heading.length()-1);
String final="<b>"+beforeSubString+"<b>"+"|"+afterSubString;
title.setText(Html.fromHtml(final));
Post a Comment for "How To Set Text In Bold Before " | ""