[英]Android: I have an actionbar and listview within the actionbar. How do I display an image in new view when I click on an item in the listview
I am new to Android and I have this issue: 我是Android的新手,但遇到以下问题:
I have created a tab action bar and have list items within the action bar. 我创建了一个选项卡操作栏,并在操作栏中包含列表项。 Now when I click on one of the list item, I want an image to be displayed in new screen. 现在,当我单击列表项之一时,我希望在新屏幕中显示图像。 How do I do this? 我该怎么做呢?
Create an new Activity
with the image in it when the ListView
was clicked. 单击ListView
时,创建一个带有图像的新Activity
。 Create a listener to handle the clicks from the ListView
and start the Activity from that. 创建一个侦听器来处理来自ListView
的单击,然后从中启动Activity。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.