1
I have a gridView
I’m populating through a WebService
. The problem begins when I want to trigger an event let’s say clico
by sliding the screen left or right I know there is a pageview
, but I don’t want to change the screen I just want the user to feel a change or whatever the data is loaded after the gesture but don’t pay to a next screen.
Being clearer as a calendar where the grid
remains the same but changes only the values. I thank you.
Let’s see if I understand the scenario, you have a Gridview that represents the days of a month (a calendar). And you want to somehow change the elements of this Gridview when performing a certain action. Correct?
– Wakim
Exact while sliding left or right trigger an event(method I have to popular the grid) while moving right increase 1 month to left decreases 1 month.
– Rabelos
You can assign this event to a gridview, because I was able to create but the event only shoots outside the gridview and not on top of it.
– Rabelos
In fact, the
GridView
"absorbs" the event because it is "scrollavel" and has the treatment ofclick
andlongclick
in the items. You would have to create your ownGridView
superimposing the methodonTouchEvent
and perhaps the methodonInterceptTouchEvent
. Detect if there was horizontal movement, do its action and do not leave the action ofGridView
standard rotate. If not horizontal you need to let the standard treatment rotate.– Wakim