vendredi 10 avril 2015

Android, use a webview data for another webview?

Suppose I have a list view (I have json list).


On click, I'd like to show a detail view.

Right now, I'm requesting a new page from the server to show the detail view.


Thing is, detail view and the list view share the same html and javascript,(the url dictates whether it will be list-view or detail-view)

Furthermore, the list view already has the data in json format for the detail info.


It is perfectly easy if I show the detail view in the same activity (or fragment).

But I'm using a different activity for list and detail view.


Is there a way for me to show the detail view without requesting my server?

Since I have necessary html/javascripts/css/json data for the detail view at hand when I'm looking at the list view.





Aucun commentaire:

Enregistrer un commentaire