I'm going to create a book (almost like attached image) for android platform. As you see in the image, there is Titles, SubTitles, Body and Images (with descriptions).
I need put search ability for all words that inclued in Titles, SubTitles, Body and Images desc.
Also, my content incluede FA and EN words and search process must cover both languages.
I have two plans:
1- Styling all contents in a single HTML/CSS and put it and images in Assets folder. Then use WebView to show it.
In this case:
♦ I don't know how can search in content
♦ I have table of contents and want to when user click on one chapter, selected chapter appear in screen.
♦ When user read for example 20 pages and exit app, for next run, application shows from page 20.
2- Using my custom view (like attached image) and store data into database.
For this purpose, I can use following tables:
TBL_SEASON (id,value)
TBL_TOPIC (id,value,seasonID)
TBL_SUB_TITLE(id,value,topicID)
TBL_CONTENT(id,value,subTitleID,imageID)
TBL_IMAGES(id,path,description) \put images into Assets folder
In this case:
♦ I think that I must using FTS tables (but I've never used it)
Please give me your suggestions which plan is better. Also is there any way(s) to do and get better result?!
Aucun commentaire:
Enregistrer un commentaire