-1

i have a string ticker.. ticker="hdfc:123:-1.90 tcc:231:+1.3 as continue to hundreds of

ticker will get from the server. i just want to bold the name... so help me to find my solution.....

here is my code...

tiker = TickerConnection.getInstance().Ticker();

    WebView mWebView = (WebView) findViewById(R.id.webview);
    mWebView.getSettings().setJavaScriptEnabled(true);String summary = "<html><body><MARQUEE>"+tiker+"</MARQUEE></body></html>";
mWebView.loadData(summary, "text/html", "utf-8");
Cœur
  • 37,241
  • 25
  • 195
  • 267
Siten
  • 4,515
  • 9
  • 39
  • 64
  • this was asked before https://stackoverflow.com/questions/1529068/android-is-it-possible-to-have-multiple-styles-inside-a-textview – Jim Mar 21 '11 at 12:30

1 Answers1

0

hey following is ur solution... u jst have to add tag <b>

tiker = TickerConnection.getInstance().Ticker();

    WebView mWebView = (WebView) findViewById(R.id.webview);
    mWebView.getSettings().setJavaScriptEnabled(true);String summary = "<html><body><MARQUEE><b>"+tiker+"</b></MARQUEE></body></html>";
mWebView.loadData(summary, "text/html", "utf-8");
Nirav Dangi
  • 3,607
  • 4
  • 49
  • 60