I am developing an app where i need to use some maths special characters in it. After a long search in google i found the following solution i.e.., How to put some special math symbols in TextView, EditView or other Android UI element. As per the above link if i am using textview means it is working good. But how to use the following "HTML.frommHtml()" in listview. I tried but it is getting error......
code: (using Textview)
//by using textview
String htmlStringWithMathSymbols = " ∂ ∆ ∏ ∑ = ≠ ≈ ≡";
txtv.setText(Html.fromHtml(htmlStringWithMathSymbols));
How to use the following "HTML.frommHtml()" with listview. when i am adding same code for listview it is getting error...
code: (using ListView)
//by using listview
String[] andi={"andi 4","andi 5" , "∂" , "∆","∏"};
ArrayAdapter<String> adp = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, andi);
lv.setAdapter(Html.fromHtml(adp));
While using with listview in the place of "fromHtml()" it is showing error as "The method fromHtml(String) in the type Html is not applicable for the arguments (ArrayAdapter)".
So how can i use the following "Html.fromHtml()" code with listview or spinner....