开发者

OnClick in ListView

开发者 https://www.devze.com 2023-04-05 02:57 出处:网络
This is my activity.I have created a list view an开发者_JS百科d it fetches the data from database and display in list view.I want to click a item in listview so that the details corresponding to that

This is my activity.I have created a list view an开发者_JS百科d it fetches the data from database and display in list view.I want to click a item in listview so that the details corresponding to that item will be displayed in another layout with the data from database can anyone help with the next step

*


    vehList.setOnItemClickListener(new OnItemClickListener() {

        public void onItemClick(AdapterView<?> parent, View view,
                int position, long id) {

            //write your code here
        }
    });
0

精彩评论

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