emilsjolander / android-FlipView

A small, easy to use android library for implementing flipping between views as seen in the popular Flipboard application
Apache License 2.0
924 stars 273 forks source link

How to set onclick listener to flipview #65

Open javedk16 opened 9 years ago

rajashekarvys commented 9 years ago

How to set onclick listener

hoseinit commented 8 years ago

+1

ITxiaoguang commented 3 months ago

搜索一下的代码,就可以有点击事件。 Search for the following code, and you will be able to have click events.

        if (!mScroller.isFinished() && mScroller.computeScrollOffset()) {
            setFlipDistance(mScroller.getCurrY());
            // 在这里移除其他页面,这样就可以添加监听
            // Remove other pages here so that you can add the listener.
            hideOtherPages(mCurrentPage);
        }