I want to display a pro开发者_开发百科duct detail page on click of a product name from list view.And for this i dont want to display in dialog alert. It should be new screen for product detail page.
based on clicked product name how can i show the product detail screen. Any ideas ?
can you pl help on this.
Thanks, Sri
From what you posted, I have the following solution in mind:
- Your
ListActivity
contains all the products you have. - If you click on one of those
products, a new Activity is launched
which provides more informations
about the product (for example in a
WebView
).
The "next" and "previous"-buttons you describe would be placed on this Activity, too.
I guess all your product informations are stored in an SQLiteDatabase? If so, every product should have an ID which can be used the find the "next"- and "previous"-products in your Show
-Activity.
The question isn't super clear. However, if you're just trying to display some information, trying using Toast. Toast displays a small "dialog" containing a message you can define.
精彩评论