开发者

Coverflow in android?

开发者 https://www.devze.com 2023-03-28 21:32 出处:网络
I created coverflow using below link http://androidsnips.blogspot.com/2011/03/images-with-coverflow-like-animation-in.html

I created coverflow using below link http://androidsnips.blogspot.com/2011/03/images-with-coverflow-like-animation-in.html Now my problem is when i click the particular image开发者_开发知识库 it shoud be displayed in another activity? how it is possible.

Thanks In Advance


Use the below code. Put it in your onCreate method.

        coverFlow.setOnItemClickListener(new OnItemClickListener() {

        public void onItemClick(AdapterView<?> arg0, View arg1, int position,
                long arg3) {
                           //Handle event here.                 

        }
    });

Based on the position from coverflow create a intent, pass the value to some other activity which has an ImageView to display the selected Image.

0

精彩评论

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

关注公众号