views:

34

answers:

1

Hi guys, I'm now stuck in html loading from my assets folder. I've several html pages under assets folder and have to load those at listview item onclick. Each listview item own their html pages.Does anybody know how i can get onclick event and how to show specific html pages ?

Thanks

A: 
  1. You can use ListView's setOnItemClickListener method to get click event on list items.
  2. You can use WebView's loadUrl method to show your html pages. See WebView tutorial.
Tony
yes i know about that but i have lot of html pages to show in webview. what i mean is that every list item has their own html pages. how can i receive onclick item id? anyway, thanks for your reply.
geekmyo
I don't know if I get it right. When list item is clicked, your listener will be triggered, and you can get the clicked item id in your implementation of AdapterView.OnItemClickListener, can't you?
Tony