0
好的,所以到目前为止,我让我的应用程序显示一个活动,并可以链接到基于点击案件的不同活动。现在,我的问题是,你如何使用与listview项目中的数据相对应的数据填充打开的活动?ListView在点击后打开活动,用数据填充新打开的活动,如何?
易于表示,
ListView (for ex. 10 items)
On click, opens ContentViewer activity
void ContentViewer::onCreate() {
setContentView contentviewer(xml);
}
(contentviewer has different textviews and imageviews with diff IDs.)
现在,当contentviewer通过点击情况下为0(在列表视图第一项),然后数据0,图像0等打开。
任何想法?