开发者

Ways To Show Info Related To ListActivity Items (Toast, New Page, etc)

I am working on learning Android programming. I am attempting to build an app that shows a list of items, and when the user clicks on an item, it will display an image of that item, as well as information about it. I'm not sure the best way to present this information. Would using the Toast widget be best? Or TextView? Or, is there another way, like creating a new activity, that makes more sense?

After the user clicks on the list item, and reads the prese开发者_Python百科nted info, they should be able to return to the list.

Any advice on next steps is greatly appreciated!

Thanks,

Mark


A toast is only able to display a small amount of text, for a particular amount of time.

Generally you will want to start a new Activity to show the details of a ListView item. By default, if you start a new activity the user will be able to return to the previous activity (your list) by clicking the back button.

If you haven't yet, check out the notepad tutorial it goes through a very similar problem in detail.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜