SQLite snippet function implementation does not format Text as HTML in TextView

前端 未结 1 1382
借酒劲吻你
借酒劲吻你 2021-01-27 03:19

I am implementing a search function using SQLite FULL TEXT SEARCH. I want to present the results with bold query text as Google search does! I have implemented code something li

相关标签:
1条回答
  • 2021-01-27 03:56

    The text view displays unformatted text because the code tells it to show the contents of the KEY_TEXT_en column, which is unformatted text.

    To display the result of the snippet function, give it a name:

    SELECT ... snippet(...) AS snippet ...
    

    and use that column for the text view.

    0 讨论(0)
提交回复
热议问题