Hey thanks TreKing,
I found one method, mGridView.performItemClick(view,position,id);

It is calling the onItemClick method successfully. But the only thing is I
have changed the image of that item on click of it, through XML, which is
not happening if I click on that item programmatically. I think, trying to
change the image programmatically will do the task.

On Wed, Aug 10, 2011 at 8:17 PM, TreKing <treking...@gmail.com> wrote:

> On Wed, Aug 10, 2011 at 9:42 AM, Raj <bande.rajki...@gmail.com> wrote:
>
>> But, how to use it with GridView? Because, I want to click on a specific
>> item in that gridview, not an entire gridView.
>>
>
> Read the GridView docs. Looks like you can set the selected item and you
> can get the selected item.
> You can then call peformClick() on the selected item.
>
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 

Regards,
Rajkiran Bande.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to