假设我有一个具有 10 个 ListField 的 Screen 类:
Vector v_prj_title,v_prj_mgr
// v_prj_title contains name of projects
// v_prj_mgr contains name of the project_manager of v_prj_title sequentially.
//Vector send_vector
//ListField myList
//ListCallBack callback
//It is clear from the code that in myList, I m inserting a vector send_vector ie callback.insert(send_vector,i), which contains 2 strings collected one from v_prj_title and other from v_prj_mgr.
for(int i=0;i<10;i++)
{
myList.insert(i);
t1 = v_prj_title.elementAt(i).toString();
send_vector = new Vector(2);
send_vector.addElement(t1);
t2 = v_prj_mgr.elementAt(i).toString();
send_vector.addElement(t2);
callback.insert(send_vector,i);
}
现在我很困惑如何将 eventListener 添加到特定的 ListField,例如假设如果我单击第三个 ListField,(假设这是下面显示的数据)一个位图图片应该显示在第三个 ListField 和项目名称(Project_Social_Meeting ) 和 project_manager (Tom Clerk) 应该插入到数据库 (SQLlite)
1.一个。Project_Chat_Master(项目名称) 湾。Vyom Ryan(项目经理) 2.一个。项目_在线_游戏 湾。维维克·罗伊 3.一个。项目_社交_会议 湾。汤姆文员 . . ETC.....