My searchable dictionary (Google's SearchableDictionary
found on SDK/samples) gets its query result from SQLiteDatabase
which gets data from definitions.txt
file (Its .txt file not XML
file).
Now I want want to show query results output as Html
on android. that mean, I want to ad \n
<b>
and other Html code
on definitions.txt
which will prossesed on SQLiteDatabase give output on query. I've found a code .setText(Html.fromHtml
but it supposed to work on XML strings only.
Here is My code which shows final output on my project
TextView word = (TextView) findViewById(R.id.word);
TextView definition = (TextView) findViewById(R.id.definition);