Ok finally, I found the solution...
It is very strange :
1. when you create a "gridView" and that no adapter is linked, the
"isfocusableIntouchmode" and "isfocusable" are set to false.
2. when you link the gridView to an adapter, the
"isfocusableIntouchmode" and "isfocusable" are changed set to true.
So to conclude : When I create, the gridView, I set :
gridView.setClickable(false);
gridView.setEnabled(false);
And in the method "getView" of the adapter, I need :
GridView grid = (GridView)parent;
grid.setFocusable(false);
grid.setFocusableInTouchMode(false);
Ok, If someone has to face with the same problem....
thanks to me....
On Nov 26, 5:50 pm, Buddy <[email protected]> wrote:
> Hi,
>
> I am always searching for a solution...after several tests, I can
> conclude that it is when I add an adapter to myGridViewthat the
> problem arises.
>
> The method "onItemClick" of my ListView is never called anymore after
> this instruction : "gridView.setAdapter(imageAdapter);"
> And it works fine if mygridviewhas no adapter...
>
> Very strange...any help ?
>
> Thanks,
> Antoine
>
> On Nov 26, 11:00 am, Buddy <[email protected]> wrote:
>
> > Hi,
>
> > In fact, to sumarize my problem : my ListView contains rows with a
> > grid View (each row has agridView). I add an "ItemClickListener" on
> > my ListView. But when I click on a row, and in particular on theGridView,
> > nothing is done...
>
> > If you can help...
>
> > Thanks,
> > Antoine
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en