android - disable gridview item onClick and enable only on child view -


hi have gridview imageview , textview in each gridview item. want disable onclick of grid view item , enable imageview. there way can achieved. have have lot of space between each grid view item , if have onclick enabled each gridview item ontimeclick listener called if click on empty spaces avoid planing have onclick imageview.... pls suggest how can done...

you can give android:clickable="false" gridview in xml.

and, can write onclick imageview inside custom adapter have populated gridview.

also try,

android:focusable="false" android:focusableintouchmode="false" 

for gridview in xml.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -