I am using cover flow in my project and while display of cover flow on button click i am showing popup.
(Coverflow in android is the style to display images in line which is scrolled on touch as we generally see in media player and can be selected ;It’s based on the Android Gallery widget and is used in the same way, with a ViewAdapter. My main aim when coding this coverflow widget was to create an easily re-usable component using the standard Android 2D libraries
reference :- http://www.inter-fuser.com/2010/01/android-coverflow-widget.html)
s
– now when popup is displayed i don’t want my coverflow to
scroll/navigate on touch i.e i want to disable coverflow untill popup
is displayed
-
i have already tried all the code below but it is not help full to
disable coverflow.coverFlow.clearFocus(); Popup.setFocusable(true); coverFlow.setClickable(false); coverFlow.setFocusable(false); coverFlow.setEnabled(false); coverFlow.setSelected(false);can any one help me out in this matter ?
I don’t know what source code of CoverFlow you are using. But you can custom it.
Extend the CoverFlow (which already extends Gallery, i think), override the onTouchEvent and onInterceptTouchEvent methods with return false if you don’t want the CoverFlow scroll, and add the method to set this attribute.
The code maybe looks like :
And then you can set the CoverFlow scroll or not by using
setScrollEnabledmethod