开发者

Coverflow in android?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜